struct CancellationTokenRegistration
in global :: System . Threading
Represents a callback delegate that has been registered with a .
public bool Equals( object obj )
Determines whether the current instance is equal to the specified .
objThe other object to which to compare this instance.- Returns True, if both this and are equal. False, otherwise. Two instances are equal if they both refer to the output of a single call to the same Register method of a .
public bool Equals( CancellationTokenRegistration other )
Determines whether the current instance is equal to the specified .
otherThe other to which to compare this instance.- Returns True, if both this and are equal. False, otherwise. Two instances are equal if they both refer to the output of a single call to the same Register method of a .
public static bool op_Equality( CancellationTokenRegistration left, CancellationTokenRegistration right )
Determines whether two instances are equal.
leftThe first instance.rightThe second instance.- Returns True if the instances are equal; otherwise, false.
public static bool op_Inequality( CancellationTokenRegistration left, CancellationTokenRegistration right )
Determines whether two instances are not equal.
leftThe first instance.rightThe second instance.- Returns True if the instances are not equal; otherwise, false.
public CancellationToken Token { get; }
Gets the with which this registration is associated. If the registration isn't associated with a token (such as after the registration has been disposed), this will return a default token.
- Returns The cancellation token with which this registration is associated, or a default token if the registration isn't associated with a token (such as after the registration has been disposed).
public void Dispose( )
😔 No documentation found.
public ValueTask DisposeAsync( )
😔 No documentation found.
public bool Unregister( )
😔 No documentation found.
public int GetHashCode( )
😔 No documentation found.
public string ToString( )
😔 No documentation found.
public Type GetType( )
😔 No documentation found.