System.Net.Sockets.Socket.AddressFamily Property

Gets the address family of the System.Net.Sockets.Socket.

Syntax

public AddressFamily AddressFamily { get; }

Value

One of the values defined in the System.Net.Sockets.AddressFamily enumeration.

Remarks

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

Requirements

Namespace: System.Net.Sockets
Assembly: System (in System.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0, 4.0.0.0