共用方式為


StreamUpgradeInitiator.BeginInitiateUpgrade 方法

定義

這個 abstract 方法可以實作,以執行可啟始升級的非同步處理。

public:
 abstract IAsyncResult ^ BeginInitiateUpgrade(System::IO::Stream ^ stream, AsyncCallback ^ callback, System::Object ^ state);
public abstract IAsyncResult BeginInitiateUpgrade (System.IO.Stream stream, AsyncCallback callback, object state);
abstract member BeginInitiateUpgrade : System.IO.Stream * AsyncCallback * obj -> IAsyncResult
Public MustOverride Function BeginInitiateUpgrade (stream As Stream, callback As AsyncCallback, state As Object) As IAsyncResult

參數

stream
Stream

要升級的資料流。

callback
AsyncCallback

InitiateUpgrade(Stream) 已經完成時,所要呼叫的方法。

state
Object

有關非同步呼叫狀態的狀態資訊。

傳回

傳回要傳入 IAsyncResult 方法中的 EndInitiateUpgrade(IAsyncResult)

備註

這個方法會呼叫 InitiateUpgrade 並傳回。

適用於