Share via


NsdServiceInfo.Port Property

Definition

Get port number. -or- Set port number

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

Attributes

Remarks

Property getter documentation:

Get port number. The port number is valid for a resolved service.

The port is valid for all addresses.

Java documentation for android.net.nsd.NsdServiceInfo.getPort().

Property setter documentation:

Set port number

Java documentation for android.net.nsd.NsdServiceInfo.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