StreamUpgradeAcceptor.BeginAcceptUpgrade(Stream, AsyncCallback, Object) 方法

定義

AcceptUpgrade(Stream) 的非同步版本。Asynchronous version of 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

參數

stream
Stream

要升級的資料流。The stream to be upgraded.

callback
AsyncCallback

AcceptUpgrade 呼叫已完成時,所要呼叫的方法。The method to be called when the AcceptUpgrade call has completed.

state
Object

AcceptUpgrade 呼叫的狀態資訊。State information for the AcceptUpgrade call.

傳回

傳回傳入 EndAcceptUpgrade 以存取所升級資料流的結果碼。Returns a result code that is passed into EndAcceptUpgrade to access the upgraded stream.

備註

如需詳細資訊,請參閱 AcceptUpgrade 的備註。For more information, see the remarks for AcceptUpgrade.

適用於