Szerkesztés

Megosztás a következőn keresztül:


IContract.RevokeLifetimeToken(Int32) Method

Definition

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.

Applies to