IWSTrustContract.BeginCancel(Message, AsyncCallback, Object) 方法

定义

WS-Trust 取消绑定的异步开始方法。The asynchronous begin method for the WS-Trust Cancel binding.

public:
 IAsyncResult ^ BeginCancel(System::ServiceModel::Channels::Message ^ message, AsyncCallback ^ callback, System::Object ^ asyncState);
[System.ServiceModel.OperationContract(Action="*", AsyncPattern=true, Name="Cancel", ReplyAction="*")]
public IAsyncResult BeginCancel (System.ServiceModel.Channels.Message message, AsyncCallback callback, object asyncState);
[<System.ServiceModel.OperationContract(Action="*", AsyncPattern=true, Name="Cancel", ReplyAction="*")>]
abstract member BeginCancel : System.ServiceModel.Channels.Message * AsyncCallback * obj -> IAsyncResult
Public Function BeginCancel (message As Message, callback As AsyncCallback, asyncState As Object) As IAsyncResult

参数

message
Message

表示包含 RST 的请求消息的 MessageA Message that represents the request message, which contains the RST.

callback
AsyncCallback

可选的 AsyncCallback 委托,在完成发送时调用。An optional AsyncCallback delegate, to be called when the send is complete.

asyncState
Object

一个用户提供的对象,它将该特定的异步发送请求与其他请求区别开来。A user-provided object that distinguishes this particular asynchronous send request from other requests.

返回

IAsyncResult

表示异步发送(可能仍处于挂起状态)的 IAsyncResult 对象。An IAsyncResult object that represents the asynchronous send, which could still be pending.

属性

适用于