URI.Port Property

Definition

Returns the port number of this URI.

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

Property Value

The port component of this URI, or -1 if the port is undefined

Attributes

Remarks

Returns the port number of this URI.

The port component of a URI, if defined, is a non-negative integer.

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

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