Union
DnsError
union struct DnsError
Module: System.Networking
Assembly: System.Networking.dll
Source file: DnsError.rvn
Inheritance: Object → ValueType → DnsError
A recoverable name-resolution failure, separate from socket connection errors and runtime Faults.
Remarks
Use named case patterns. The default value is inactive (HasValue is false, Value is null, and ToString returns Empty). This development union does not expose native resolver error numbers. Use named case patterns. The default union is inactive: HasValue is false, Value is null and ToString returns Empty.
Cases
6 cases
case InvalidName
The input is empty, exceeds 253 bytes or contains characters outside the provisional ASCII hostname input set.
case LimitExceeded
Host lookup capacity, retained operation slots or bounded address results exceed the provisional limits.
case NoAddress
The host returned no usable IPv4 address.
case TimedOut
The lookup deadline expired before its outcome was observed by the owner.
case Cancelled
A native resolver cancellation category. Token-requested cancellation is acknowledged through Task cancellation rather than this Result error case.
case LookupFailed
The host resolver failed. Native resolver codes are not a public contract.
Properties
2 items
HasValue: bool
Reports whether the union contains an active case.
Value: object?
Projects the active case as an Object for compiler support.
Methods
4 items
Equals(other: object?) -> bool
Tests reference identity by default; an ordinary class may override equality.
Inherited from Object.Equals
GetHashCode() -> int
Returns a stable identity hash by default; an ordinary class may override it consistently with equality.
Inherited from Object.GetHashCode
GetType() -> TypeInfo
Returns metadata for the concrete runtime type of this instance.
Inherited from Object.GetType
ToString() -> string
Returns the active case name, or Empty for an inactive default.
Overrides Object.ToString