StreamUpgradeAcceptor.AcceptUpgrade(Stream) 方法

定義

升級傳輸資料流,並且傳回升級的資料流。Upgrades the transport stream and returns the upgraded 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

參數

stream
Stream

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

傳回

傳回升級的資料流。Returns the upgraded stream.

備註

透過提供其他功能 (例如,壓縮資料流),這個方法便可以用來包裝現有的傳輸資料流。This method can be used to wrap the existing transport stream by providing additional capabilities; for example, a compressing stream.

適用於