Class ErrorHandle
public abstract class ErrorHandle : SafeHandle, IDisposable, IEquatable<ErrorHandle>
- Inheritance
-
ErrorHandle
- Implements
- Derived
- Inherited Members
Constructors
ErrorHandle(bool)
protected ErrorHandle(bool ownsHandle)
Parameters
ownsHandle
bool
Properties
IsInvalid
When overridden in a derived class, gets a value indicating whether the handle value is invalid.
public override sealed bool IsInvalid { get; }
Property Value
Methods
Equals(ErrorHandle?)
Indicates whether the current object is equal to another object of the same type.
public bool Equals(ErrorHandle? other)
Parameters
other
ErrorHandleAn object to compare with this object.
Returns
Equals(object?)
Determines whether the specified object is equal to the current object.
public override bool Equals(object? obj)
Parameters
obj
objectThe object to compare with the current object.
Returns
GetCode()
public int GetCode()
Returns
GetDomain()
public uint GetDomain()
Returns
GetHashCode()
Serves as the default hash function.
public override int GetHashCode()
Returns
- int
A hash code for the current object.
GetMessage()
public IntPtr GetMessage()
Returns
OwnedCopy()
public ErrorOwnedHandle OwnedCopy()
Returns
SetCode(int)
public void SetCode(int value)
Parameters
value
int
SetDomain(uint)
public void SetDomain(uint value)
Parameters
value
uint
SetMessage(IntPtr)
public void SetMessage(IntPtr value)
Parameters
value
IntPtr
UnownedCopy()
public ErrorUnownedHandle UnownedCopy()