Gets a WebErrorStatus value based on an error encountered by a WebSocket operation.
public:
static WebErrorStatus GetStatus(
int32 hresult
)
hresult
Type: int32
The error encountered by a WebSocket operation represented as an HRESULT.
Type: WebErrorStatus
The socket error status value for a WebSocket operation.
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.
Namespace: Windows.Networking.Sockets
Metadata: windows.winmd