Socket.AddressFamily Property

 

Gets the address family of the Socket.

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

member AddressFamily : AddressFamily with get

Property Value

Type: System.Net.Sockets.AddressFamily

One of the AddressFamily values.

The AddressFamily specifies the addressing scheme that an instance of the Socket class can use. This property is read-only and is set when the Socket is created.

The following code example displays the AddressFamily, SocketType, and ProtocolType to the console.

No code example is currently available or this language may not be supported.

Universal Windows Platform
Available since 10
.NET Framework
Available since 1.1
Silverlight
Available since 2.0
Windows Phone Silverlight
Available since 7.1
Return to top
Show: