StreamUpgradeAcceptor.AcceptUpgrade(Stream) 方法

定义

升级传输流并返回升级后的流。

public:
 virtual System::IO::Stream ^ AcceptUpgrade(System::IO::Stream ^ stream);
public virtual System.IO.Stream AcceptUpgrade (System.IO.Stream stream);
abstract member AcceptUpgrade : System.IO.Stream -> System.IO.Stream
override this.AcceptUpgrade : System.IO.Stream -> System.IO.Stream
Public Overridable Function AcceptUpgrade (stream As Stream) As Stream

参数

stream
Stream

要升级的流。

返回

返回升级后的流。

注解

此方法可以通过提供其他功能(比如压缩流)来包装现有的传输流。

适用于