次の方法で共有


DatagramPacket.Port Property

Definition

Returns the port number on the remote host to which this datagram is being sent or from which the datagram was received. -or- Sets the port number on the remote host to which this datagram is being sent.

public int Port { [Android.Runtime.Register("getPort", "()I", "")] get; [Android.Runtime.Register("setPort", "(I)V", "")] set; }
[<get: Android.Runtime.Register("getPort", "()I", "")>]
[<set: Android.Runtime.Register("setPort", "(I)V", "")>]
member this.Port : int with get, set

Property Value

the port number on the remote host to which this datagram is being sent or from which the datagram was received.

Attributes

Remarks

Property getter documentation:

Returns the port number on the remote host to which this datagram is being sent or from which the datagram was received.

Java documentation for java.net.DatagramPacket.getPort().

Property setter documentation:

Sets the port number on the remote host to which this datagram is being sent.

Added in 1.1.

Java documentation for java.net.DatagramPacket.setPort(int).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to