System.Net.EndPoint.AddressFamily Property

Gets the address family to which the endpoint belongs.

Syntax

public virtual System.Net.Sockets.AddressFamily AddressFamily { get; }

Value

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

Exceptions

TypeReason
NotSupportedExceptionThis property is required to be overridden in types derived from System.Net.EndPoint .

Remarks

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

Requirements

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