共用方式為


StreamUpgradeAcceptor.BeginAcceptUpgrade 方法

定義

AcceptUpgrade(Stream) 的非同步版本。

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

參數

stream
Stream

要升級的資料流。

callback
AsyncCallback

AcceptUpgrade 呼叫已完成時,所要呼叫的方法。

state
Object

AcceptUpgrade 呼叫的狀態資訊。

傳回

傳回傳入 EndAcceptUpgrade 以存取所升級資料流的結果碼。

備註

如需詳細資訊,請參閱 AcceptUpgrade 的備註。

適用於