API Reference
Class
DnsQueryException
Wraps network/parse/timeout exceptions during DNS querying with a normalized error code.
Inheritance
- Exception
- DnsQueryException
Constructors
public DnsQueryException(DnsQueryErrorCode errorCode, String message, Exception inner = null, DnsResponse response = null) #Creates a new instance with the specified error category and message.
Parameters
- errorCode DnsClientX.DnsQueryErrorCode
- message System.String
- inner System.Exception = null
- response DnsClientX.DnsResponse = null
Inherited Methods
public override Boolean Equals(Object obj) #Returns:
BooleanInherited from Object
Parameters
- obj Object
public override Void GetObjectData(SerializationInfo info, StreamingContext context) #Returns:
VoidInherited from Exception
Obsolete("This API supports obsolete formatter-based serialization. It should not be called or extended by application code.", DiagnosticId = "SYSLIB0051", UrlFormat = "https://aka.ms/dotnet-warnings/{0}") EditorBrowsable(1)Parameters
- info SerializationInfo
- context StreamingContext
Properties
Inherited Properties
public MethodBase TargetSite { get; } #Inherited from Exception
public override String Message { get; } #Inherited from Exception
public override IDictionary Data { get; } #Inherited from Exception
public Exception InnerException { get; } #Inherited from Exception
public override String HelpLink { get; set; } #Inherited from Exception
public override String Source { get; set; } #Inherited from Exception
public override String StackTrace { get; } #Inherited from Exception