Compartir a través de


AddressFamily Enumeration

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

Specifies the addressing scheme that an instance of the Socket class can use.

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

Syntax

'Declaration
Public Enumeration AddressFamily
public enum AddressFamily

Members

Member name Description
Supported by Silverlight for Windows Phone Unknown An unknown address family.Not supported for use in a Silverlight for Windows Phone application.
Supported by Silverlight for Windows Phone Unspecified An address family has not been specified.Not supported for use in a Silverlight for Windows Phone application.
Supported by Silverlight for Windows Phone InterNetwork An address for IP version 4.
Supported by Silverlight for Windows Phone InterNetworkV6 An address for IP version 6.Not supported for use in a Silverlight for Windows Phone application.

Remarks

An AddressFamily member specifies the addressing scheme that a Socket will use to resolve an address. For example, InterNetwork indicates that an IP version 4 address is expected when a Socket connects to an endpoint.

Version Notes

Silverlight for Windows Phone Silverlight for Windows Phone

InterNetwork is the only value of the AddressFamily enumeration valid for use in a Silverlight for Windows Phone application.

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.

See Also

Reference