WSTrustChannel.BeginClose 方法

定義

開始非同步作業以關閉通訊物件。Begins an asynchronous operation to close a communication object.

多載

BeginClose(AsyncCallback, Object)

開始非同步作業以關閉通訊物件。Begins an asynchronous operation to close a communication object.

BeginClose(TimeSpan, AsyncCallback, Object)

開始非同步作業,關閉有已指定逾時的通訊物件。Begins an asynchronous operation to close a communication object with a specified timeout.

BeginClose(AsyncCallback, Object)

開始非同步作業以關閉通訊物件。Begins an asynchronous operation to close a communication object.

public:
 virtual IAsyncResult ^ BeginClose(AsyncCallback ^ callback, System::Object ^ state);
public IAsyncResult BeginClose (AsyncCallback callback, object state);
abstract member BeginClose : AsyncCallback * obj -> IAsyncResult
override this.BeginClose : AsyncCallback * obj -> IAsyncResult
Public Function BeginClose (callback As AsyncCallback, state As Object) As IAsyncResult

參數

callback
AsyncCallback

AsyncCallback 委派,這個委派會接收完成非同步關閉作業的通知。The AsyncCallback delegate that receives notification of the completion of the asynchronous close operation.

state
Object

應用程式所指定的物件,其中包含與非同步關閉作業關聯的狀態資訊。An object, specified by the application, that contains state information associated with the asynchronous close operation.

傳回

IAsyncResult

參考非同步關閉作業的 IAsyncResultThe IAsyncResult that references the asynchronous close operation.

實作

適用於

BeginClose(TimeSpan, AsyncCallback, Object)

開始非同步作業,關閉有已指定逾時的通訊物件。Begins an asynchronous operation to close a communication object with a specified timeout.

public:
 virtual IAsyncResult ^ BeginClose(TimeSpan timeout, AsyncCallback ^ callback, System::Object ^ state);
public IAsyncResult BeginClose (TimeSpan timeout, AsyncCallback callback, object state);
abstract member BeginClose : TimeSpan * AsyncCallback * obj -> IAsyncResult
override this.BeginClose : TimeSpan * AsyncCallback * obj -> IAsyncResult
Public Function BeginClose (timeout As TimeSpan, callback As AsyncCallback, state As Object) As IAsyncResult

參數

timeout
TimeSpan

TimeSpan,指定必須在逾時前多久完成關閉作業。The TimeSpan that specifies how long the close operation has to complete before timing out.

callback
AsyncCallback

AsyncCallback 委派,這個委派會接收完成非同步關閉作業的通知。The AsyncCallback delegate that receives notification of the completion of the asynchronous close operation.

state
Object

應用程式所指定的物件,其中包含與非同步關閉作業關聯的狀態資訊。An object, specified by the application, that contains state information associated with the asynchronous close operation.

傳回

IAsyncResult

參考非同步關閉作業的 IAsyncResultThe IAsyncResult that references the asynchronous close operation.

實作

適用於