Mono Class Library: System.Net.IPEndPoint Overview | Members

System.Net.IPEndPoint.Create Method

Returns a new System.Net.IPEndPoint instance containing the address information from the specified System.Net.SocketAddress instance.

public override EndPoint Create (SocketAddress sockaddr)

Parameters

sockaddr
A System.Net.SocketAddress instance that provides the address information for the new System.Net.IPEndPoint instance.

Returns

A new System.Net.IPEndPoint instance containing the address information from the specified System.Net.SocketAddress instance.

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