DnsEndPoint.Port Property

Microsoft Silverlight will reach end of support after October 2021. Learn more.

Gets the port number of the DnsEndPoint.

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


Public ReadOnly Property Port As Integer
public int Port { get; }

Property Value

Type: System.Int32
An integer value in the range 0 to 0xffff indicating the port number of the DnsEndPoint.

Version Information


Supported in: 5, 4, 3

Silverlight for Windows Phone

Supported in: Windows Phone OS 7.1


For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.