IContract.RevokeLifetimeToken(Int32) Método

Definição

Especifica que o contrato não está mais acessível a um cliente.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)

Parâmetros

token
Int32

Um valor, também conhecido como um token de tempo de vida, que identifica o cliente que está revogando o contrato.A value, also known as a lifetime token, that identifies the client that is revoking the contract.

Comentários

Os clientes de um objeto que implementa IContract chamam o RevokeLifetimeToken método para notificar o objeto de que o cliente não precisa mais do contrato.Clients of an object that implements IContract call the RevokeLifetimeToken method to notify the object that the client no longer needs the contract. Um IContract é garantido para ser usado desde que pelo menos um token de tempo de vida passado para um cliente não tenha sido revogado.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.

Para adquirir um contrato, os clientes chamam o AcquireLifetimeToken método.To acquire a contract, clients call the AcquireLifetimeToken method.

Aplica-se a