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 并返回。

适用于