AnyUri.Port PropertyAnyUri.Port PropertyAnyUri::Port Property

Gets the port number from this URI.

Syntax

Public ReadOnly Property Port As Integer
        Get
public int Port { get; }
public:
property int Port {
    int get();
}
 

Property Value

Type: System.Int32System.Int32System::Int32

An intIntegerint representing the port number specified in this URI, or if the port is not specified in the URI, then the default port for the scheme, or -1 if the scheme is not ftp, http, or https.