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 的备注部分。

适用于