Sdílet prostřednictvím


Uri.Port Property

Definition

Gets the port number component of the Uniform Resource Identifier (URI) as stored in this Uri instance

public:
 property int Port { int get(); };
int Port();
public int Port { get; }
var int32 = uri.port;
Public ReadOnly Property Port As Integer

Property Value

Int32

int

The port number.

Remarks

This property reports the implicit defaults for schemes, such as 80 for http:.

Applies to