Language

Uri.Port Property

Definition

Gets the port from the authority for this URI.

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

Property Value

the port for this URI or -1 if invalid or not present

Attributes

Remarks

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.

Java documentation for android.net.Uri.getPort().

Applies to