Error. Get Status(Int32) Method
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
public: static SocketErrorStatus GetStatus(int hresult);
static SocketErrorStatus GetStatus(int const& hresult);
public static SocketErrorStatus GetStatus(int hresult);
Public Shared Function GetStatus (hresult As Integer) As SocketErrorStatus
The error encountered by a socket operation represented as an HRESULT.
The socket error status value for a socket operation.
ID_CAP_NETWORKING [Windows Phone]
An error encountered on socket operation is returned as HRESULT value. The GetStatus method 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.
The SocketError object and the GetStatus method would be used when the developer wants to programmatically handle errors that occur during the operation of an app.