SocketError SocketError SocketError SocketError SocketError Class

Definition

Provides socket error status for operations on a DatagramSocket, StreamSocket, or StreamSocketListener.

public : static class SocketError
static struct winrt::Windows::Networking::Sockets::SocketError
public static class SocketError
Public Static Class SocketError
// This class does not provide a public constructor.
Attributes
Windows 10 requirements
Device family
Windows 10 (introduced v10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v1)
Capabilities
ID_CAP_NETWORKING [Windows Phone]

Remarks

An error encountered on socket operation is returned as HRESULT value. The GetStatus method on the SocketError object is used to convert an error from a socket operation to a SocketErrorStatus enumeration value. Most of the SocketErrorStatus enumeration values correspond to an error returned by the native Windows sockets operation.

Methods

GetStatus(Int32) GetStatus(Int32) GetStatus(Int32) GetStatus(Int32) GetStatus(Int32)

Gets a SocketErrorStatus value based on an error encountered by a socket operation.

See Also