Error Status Enum
Specifies status values for a socket operation.
public enum class SocketErrorStatus
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)] enum SocketErrorStatus
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)] public enum SocketErrorStatus
var value = Windows.Networking.Sockets.SocketErrorStatus.unknown
Public Enum SocketErrorStatus
Windows 10 requirements
Windows 10 (introduced in 10.0.10240.0)
Windows.Foundation.UniversalApiContract (introduced in v1.0)
ID_CAP_NETWORKING [Windows Phone]
The address is already in use.
The address family is not supported.
Cannot assign requested address.
The certificate is not valid for the requested usage. This error is also returned if the certificate has an invalid name. The name is not included in the permitted list or is explicitly excluded.
A required certificate is not within its validity period when verifying against the current system clock or the timestamp in the signed file. This error is also returned if the validity periods of the certification chain do not nest correctly.
The supplied certificate is invalid. This can be returned for a number of reasons:
The revocation function was unable to check revocation for the certificate.
The revocation function was unable to check revocation because the revocation server was offline.
A certificate was explicitly revoked by its issuer. This error is also returned if the certificate was explicitly marked as untrusted by the user.
A certificate chain processed, but terminated in a root certificate which is not trusted by the trust provider. This error is also returned if a certificate chain could not be built to a trusted root authority.
The certificate is not valid for the requested usage.
The specified class was not found.
The connection was refused.
The connection was reset by the peer.
A connection timeout was exceeded.
The host is down.
The host was not found.
A bad response was received from the HTTP server.
A message sent on a datagram socket was larger than the internal message buffer or some other network limit, or the buffer used to receive a datagram was smaller than the datagram itself.
The network dropped connection on reset.
The network is down.
The network is unreachable.
The pipe is being closed.
The requested name is valid and was found in the database, but it does not have the correct associated data being resolved for.
This is usually a temporary error during hostname resolution and means that the local server did not receive a response from an authoritative server.
The operation was aborted.
The socket type is not supported.
Software caused a connection abort.
Too many open files.
The socket status is unknown.
The host is unreachable.
An error encountered on socket operation is returned as HRESULT value. The SocketError.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.