SecurityTokenService.BeginCancel(ClaimsPrincipal, RequestSecurityToken, AsyncCallback, Object) Method

Definition

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

Parameters

principal
ClaimsPrincipal

A ClaimsPrincipal that represents the identity of the token requestor.

request
RequestSecurityToken

A RequestSecurityToken that represents the security token request. This includes the request message as well as other client related information such as authorization context.

callback
AsyncCallback

The AsyncCallback delegate that receives notification of the completion of the asynchronous cancel operation.

state
Object

An object that contains state information associated with the asynchronous cancel operation.

Returns

IAsyncResult

The IAsyncResult that references the asynchronous cancel operation.

Remarks

The default implementation of this method throws an InvalidRequestException.

Applies to