System.Net.IPEndPoint.Create Method

Creates an endpoint from a socket address.

Syntax

public override EndPoint Create (SocketAddress socketAddress)

Parameters

socketAddress
The System.Net.SocketAddress to use for the endpoint.

Returns

An System.Net.EndPoint instance using the specified socket address.

Exceptions

TypeReason
ArgumentExceptionThe AddressFamily of the specified System.Net.SocketAddress is not equal to the AddressFamily of the current instance.

Remarks

Note: This method overrides EndPoint.Create(SocketAddress) .

Requirements

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