Mono Class Library: System.Net.Sockets.Socket Overview | Members

System.Net.Sockets.Socket.LocalEndPoint Property

Gets the local endpoint associated with the current instance. [Edit]

public System.Net.EndPoint LocalEndPoint { get; }

Value

The local System.Net.EndPoint associated with the current instance. [Edit]

Exceptions

TypeReason
System.Net.Sockets.SocketException
Note: For additional information on causes of the SocketException, see the System.Net.Sockets.SocketException class.
[Edit]
ObjectDisposedExceptionThe current instance has been disposed. [Edit]

Remarks

This property is read-only.

This property contains the network connection information for the current instance.

Note: The Socket.Bind(System.Net.EndPoint) and Socket.Accept methods, and their asynchronous counterparts set this property. If not previously set, the Socket.Connect(System.Net.EndPoint) and Socket.SendTo(Byte[], int, int, SocketFlags, System.Net.EndPoint) methods, and their asynchronous counterparts set this property.

[Edit]

Requirements

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