SecurityTokenService.BeginCancel(ClaimsPrincipal, RequestSecurityToken, AsyncCallback, Object) Método

Definição

Quando substituído em uma classe derivada, inicia uma solicitação Cancel do WS-Trust assíncrona.When overridden in a derived class, begins an asynchronous WS-Trust Cancel request.

public:
 virtual IAsyncResult ^ BeginCancel(System::Security::Claims::ClaimsPrincipal ^ principal, System::IdentityModel::Protocols::WSTrust::RequestSecurityToken ^ request, AsyncCallback ^ callback, System::Object ^ state);
public virtual IAsyncResult BeginCancel (System.Security.Claims.ClaimsPrincipal principal, System.IdentityModel.Protocols.WSTrust.RequestSecurityToken request, AsyncCallback callback, object state);
abstract member BeginCancel : System.Security.Claims.ClaimsPrincipal * System.IdentityModel.Protocols.WSTrust.RequestSecurityToken * AsyncCallback * obj -> IAsyncResult
override this.BeginCancel : System.Security.Claims.ClaimsPrincipal * System.IdentityModel.Protocols.WSTrust.RequestSecurityToken * AsyncCallback * obj -> IAsyncResult
Public Overridable Function BeginCancel (principal As ClaimsPrincipal, request As RequestSecurityToken, callback As AsyncCallback, state As Object) As IAsyncResult

Parâmetros

principal
ClaimsPrincipal

Um ClaimsPrincipal que representa a identidade do solicitante do token.A ClaimsPrincipal that represents the identity of the token requestor.

request
RequestSecurityToken

Um RequestSecurityToken que representa a solicitação do token de segurança.A RequestSecurityToken that represents the security token request. Isso inclui a mensagem de solicitação, bem como outras informações relacionadas ao cliente, como o contexto de autorização.This includes the request message as well as other client related information such as authorization context.

callback
AsyncCallback

O delegado AsyncCallback que recebe a notificação da conclusão da operação de cancelamento assíncrona.The AsyncCallback delegate that receives notification of the completion of the asynchronous cancel operation.

state
Object

Um objeto que contém as informações de estado associadas à operação de cancelamento assíncrono.An object that contains state information associated with the asynchronous cancel operation.

Retornos

IAsyncResult

O IAsyncResult que faz referência à operação de cancelamento assíncrona.The IAsyncResult that references the asynchronous cancel operation.

Comentários

A implementação padrão desse método gera um InvalidRequestException .The default implementation of this method throws an InvalidRequestException.

Aplica-se a