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

System.Net.EndPoint.Create Method

Returns a new System.Net.EndPoint instance containing the address information from the specified System.Net.SocketAddress instance. [Edit]

public virtual EndPoint Create (SocketAddress address)

Parameters

address
A System.Net.SocketAddress instance that provides the address information for the new System.Net.EndPoint instance. [Edit]

Returns

A new System.Net.EndPoint instance containing the address information from the specified System.Net.SocketAddress instance. [Edit]

Exceptions

TypeReason
NotSupportedExceptionThis method is required to be overridden in types derived from System.Net.EndPoint . [Edit]

Remarks

Operation
As described above.

The default implementation throws NotSupportedException.

Note to Inheritors
Override this method to return a System.Net.EndPoint instance that contains the address information from the specified System.Net.SocketAddress.

Usage
Use this method to obtain a System.Net.EndPoint instance that represents the same network resource or service as the specified System.Net.SocketAddress.

[Edit]

Requirements

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