Op Englesch liesen Editéieren

Deelen iwwer


IContract.RevokeLifetimeToken(Int32) Method

Definition

Specifies that the contract is no longer accessible to a client.

C#
public void RevokeLifetimeToken(int token);

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.

Applies to

Produkt Versiounen
.NET Framework 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1