Compartir a través de


Uri.Port Property

Gets the port number of this URI.

Namespace: System
Assembly: mscorlib (in mscorlib.dll)

Syntax

public int Port { get; }

Property Value

An Int32 value containing the port number for this URI.

Exceptions

Exception type Condition
InvalidOperationException This instance represents a relative URI, and this property is valid only for absolute URIs.

Version Information

Available in the .NET Micro Framework versions 4.0, 4.1, and 4.2.

See Also

Reference

Uri Class
Uri Members
System Namespace