IContract.RevokeLifetimeToken(Int32) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Specifies that the contract is no longer accessible to a client.
public:
void RevokeLifetimeToken(int token);
public void RevokeLifetimeToken (int token);
abstract member RevokeLifetimeToken : int -> unit
Public Sub RevokeLifetimeToken (token As Integer)
Parameters
- token
- Int32
A value, also known as a lifetime token, that identifies the client that is revoking the contract.
Remarks
Clients of an object that implements IContract call the RevokeLifetimeToken method to notify the object that the client no longer needs the contract. An IContract is guaranteed to be usable as long as at least one lifetime token that it passed to a client has not been revoked.
To acquire a contract, clients call the AcquireLifetimeToken method.