語言

SecurityTokenProvider.BeginCancelTokenCore 方法

定義

開始非同步操作以取消安全令牌。

protected:
 virtual IAsyncResult ^ BeginCancelTokenCore(TimeSpan timeout, System::IdentityModel::Tokens::SecurityToken ^ token, AsyncCallback ^ callback, System::Object ^ state);
protected virtual IAsyncResult BeginCancelTokenCore(TimeSpan timeout, System.IdentityModel.Tokens.SecurityToken token, AsyncCallback callback, object state);
abstract member BeginCancelTokenCore : TimeSpan * System.IdentityModel.Tokens.SecurityToken * AsyncCallback * obj -> IAsyncResult
override this.BeginCancelTokenCore : TimeSpan * System.IdentityModel.Tokens.SecurityToken * AsyncCallback * obj -> IAsyncResult
Protected Overridable Function BeginCancelTokenCore (timeout As TimeSpan, token As SecurityToken, callback As AsyncCallback, state As Object) As IAsyncResult

參數

timeout
TimeSpan

A TimeSpan 指定取消安全標記訊息的逾時值。

token
SecurityToken

取消 SecurityToken 。

callback
AsyncCallback

AsyncCallback接收非同步閉關操作完成通知的代表。

state
Object

由應用程式指定的物件,包含與非同步關閉操作相關的狀態資訊。

傳回

那 IAsyncResult 個 就是非同步取消操作。

備註

可取消的安全令牌,例如已發出的,允許請求安全令牌的客戶端在完成該令牌後取消該令牌。

給繼承者的注意事項

當你從該 SecurityTokenProvider 類別繼承時,不必覆蓋非同步方法,因為 SecurityTokenProvider 基底類別會基於同步方法提供非同步支援。 因此,除非你需要提供自己的非同步實作,否則你不必覆寫該 BeginCancelTokenCore(TimeSpan, SecurityToken, AsyncCallback, Object) 方法。

BeginCancelTokenCore(TimeSpan, SecurityToken, AsyncCallback, Object)方法由方法BeginCancelToken(TimeSpan, SecurityToken, AsyncCallback, Object)呼喚。

非同步方法的前綴為 Begin 和 End ,在衍生類別中不需要被覆寫。 基 SecurityTokenProvider 底類別提供基於同步方法的非同步實作。

適用於