Union
StorageLookupError
union struct StorageLookupError
Module: System.Storage
Assembly: System.Runtime.dll
Source file: StorageLookupError.rvn
Inheritance: Object → ValueType → StorageLookupError
Expected failures from metadata queries, child address validation and provider lookup.
Remarks
Development after Preview 9. Use a named case; an uninitialized carrier is not a valid value. Prefer union patterns when supported by the consuming frontend. Use named case patterns. The default union is inactive: HasValue is false, Value is null and ToString returns Empty.
Cases
7 cases
case InvalidPath
The supplied path is invalid for this operation.
case NotFound
The path or followed target does not exist.
case AccessDenied
The host rejected metadata access.
case WrongKind
The item does not have the requested or supported kind.
case IoFailure
Another host I/O failure prevented lookup.
case InvalidRange
The enumeration bound is negative.
case LimitExceeded
The enumeration exceeds the requested or provider resource bound.
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