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.

WebSocketError.GetStatus | getStatus method

Applies to Windows and Windows Phone

Gets a WebErrorStatus value based on an error encountered by a WebSocket operation.

Syntax


var webErrorStatus = Windows.Networking.Sockets.WebSocketError.getStatus(hresult);

Parameters

hresult

Type: Number [JavaScript] | System.Int32 [.NET] | int32 [C++]

The error encountered by a WebSocket operation represented as an HRESULT.

Return value

Type: WebErrorStatus

The socket error status value for a WebSocket operation.

Remarks

An error encountered on a WebSocket operation is returned as HRESULT value. The GetStatus method is used to convert an error from a WebSocket operation to a WebErrorStatus enumeration value. This can be useful for handling errors programmatically.

Requirements

Minimum supported client

Windows 8

Minimum supported server

Windows Server 2012

Minimum supported phone

Windows Phone 8.1 [Windows Runtime apps only]

Namespace

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

Metadata

Windows.winmd

See also

WebSocketError
SocketErrorStatus

 

 

Show:
© 2014 Microsoft