共用方式為


ClientBase<TChannel>.ChannelBase<T>.IOutputChannel.BeginSend 方法

定義

開始傳輸訊息的非同步作業。

多載

IOutputChannel.BeginSend(Message, AsyncCallback, Object)

開始非同步作業,將訊息傳送到輸出通道的目的端。

IOutputChannel.BeginSend(Message, TimeSpan, AsyncCallback, Object)

開始非同步作業,於指定的時間間隔內將訊息傳送給輸出通道的目的端。

IOutputChannel.BeginSend(Message, AsyncCallback, Object)

來源:
ClientBase.cs
來源:
ClientBase.cs

開始非同步作業,將訊息傳送到輸出通道的目的端。

 virtual IAsyncResult ^ System.ServiceModel.Channels.IOutputChannel.BeginSend(System::ServiceModel::Channels::Message ^ message, AsyncCallback ^ callback, System::Object ^ state) = System::ServiceModel::Channels::IOutputChannel::BeginSend;
IAsyncResult IOutputChannel.BeginSend (System.ServiceModel.Channels.Message message, AsyncCallback callback, object state);
abstract member System.ServiceModel.Channels.IOutputChannel.BeginSend : System.ServiceModel.Channels.Message * AsyncCallback * obj -> IAsyncResult
override this.System.ServiceModel.Channels.IOutputChannel.BeginSend : System.ServiceModel.Channels.Message * AsyncCallback * obj -> IAsyncResult
Function BeginSend (message As Message, callback As AsyncCallback, state As Object) As IAsyncResult Implements IOutputChannel.BeginSend

參數

message
Message

正在輸出通道上傳送的訊息。

callback
AsyncCallback

AsyncCallback 委派。

state
Object

應用程式指定的物件,其中包含與非同步傳送作業有關的狀態資訊。

傳回

參考非同步訊息傳輸的 IAsyncResult

實作

適用於

IOutputChannel.BeginSend(Message, TimeSpan, AsyncCallback, Object)

來源:
ClientBase.cs
來源:
ClientBase.cs

開始非同步作業,於指定的時間間隔內將訊息傳送給輸出通道的目的端。

 virtual IAsyncResult ^ System.ServiceModel.Channels.IOutputChannel.BeginSend(System::ServiceModel::Channels::Message ^ message, TimeSpan timeout, AsyncCallback ^ callback, System::Object ^ state) = System::ServiceModel::Channels::IOutputChannel::BeginSend;
IAsyncResult IOutputChannel.BeginSend (System.ServiceModel.Channels.Message message, TimeSpan timeout, AsyncCallback callback, object state);
abstract member System.ServiceModel.Channels.IOutputChannel.BeginSend : System.ServiceModel.Channels.Message * TimeSpan * AsyncCallback * obj -> IAsyncResult
override this.System.ServiceModel.Channels.IOutputChannel.BeginSend : System.ServiceModel.Channels.Message * TimeSpan * AsyncCallback * obj -> IAsyncResult
Function BeginSend (message As Message, timeout As TimeSpan, callback As AsyncCallback, state As Object) As IAsyncResult Implements IOutputChannel.BeginSend

參數

message
Message

正在輸出通道上傳送的訊息。

timeout
TimeSpan

時間範圍,指定必須在逾時前多久完成傳送作業。

callback
AsyncCallback

AsyncCallback 委派,可接收非同步作業傳送完成的通知。

state
Object

應用程式指定的物件,其中包含與非同步傳送作業有關的狀態資訊。

傳回

參考非同步傳送作業的 IAsyncResult

實作

適用於