共用方式為


EndPoint.AddressFamily Property

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

Gets the address family to which the endpoint belongs.

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

Syntax

'Declaration
Public Overridable ReadOnly Property AddressFamily As AddressFamily
public virtual AddressFamily AddressFamily { get; }

Property Value

Type: System.Net.Sockets.AddressFamily
One of the AddressFamily values.

Exceptions

Exception Condition
NotImplementedException

Any attempt is made to get or set the property when the property is not overridden in a descendant class.

Remarks

The AddressFamily property specifies the addressing scheme that is used by the endpoint's underlying network protocol.

Version Information

Silverlight

Supported in: 5, 4, 3

Silverlight for Windows Phone

Supported in: Windows Phone OS 7.1

Platforms

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