HostPolicyErrorCode
Specifies the error code that indicates the cause of a host name verification failure.
enum HostPolicyErrorCode {
HostNameComparison_UnknownError = 0,
HostNameComparison_NotEqual = 1,
HostNameComparison_IgnoreWildcard = 2,
HostNameComparison_IgnorePort = 4,
HostNameComparison_IgnoreAreComparsion = 8
}
Members
HostNameComparison_UnknownError
Indicates an unknown error occurred during host name comparison. (Value: 0)
HostNameComparison_NotEqual
Indicates that the host names are not equal. (Value: 1)
HostNameComparison_IgnoreWildcard
Indicates that wildcard characters were ignored during host name comparison. (Value: 2)
HostNameComparison_IgnorePort
Indicates that the port number was ignored during host name comparison. (Value: 4)
HostNameComparison_IgnoreAreComparsion
Indicates that the address comparison was ignored during host name comparison. (Value: 8)
Remarks
This enumeration is used by the System.Net.Security.HostnameValidation class to report issues encountered during the validation of host names, typically in the context of secure network communication like SSL/TLS.
Each member represents a specific reason why a host name might fail verification, allowing for more granular error handling and reporting.