Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

SocketError class

Applies to Windows and Windows Phone

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

Syntax


var socketError = Windows.Networking.Sockets.SocketError;

Attributes

[DualApiPartition()]
[MarshalingBehavior(Agile)]
[Threading(Both)]
[Version(0x06020000)]

Members

The SocketError class has these types of members:

Methods

The SocketError class has these methods. With C#, Visual Basic, and C++, it also inherits methods from the Object class.

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

 

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.

Requirements

Minimum supported client

Windows 8 [Windows Store apps, desktop apps]

Minimum supported server

Windows Server 2012 [Windows Store apps, desktop apps]

Minimum supported phone

Windows Phone 8

Namespace

Windows.Networking.Sockets
Windows::Networking::Sockets [C++]

Metadata

Windows.winmd

DLL

Windows.Networking.dll

Capabilities

ID_CAP_NETWORKING [Windows Phone]

See also

DatagramSocket
StreamSocket
StreamSocketListener

 

 

Show:
© 2014 Microsoft