StreamUpgradeAcceptor 類別

定義

實作繼承自這個 abstract 基底類別 (Base Class) 的自訂升級接受器。To implement a custom upgrade acceptor, inherited from this abstract base class.

public ref class StreamUpgradeAcceptor abstract
public abstract class StreamUpgradeAcceptor
type StreamUpgradeAcceptor = class
Public MustInherit Class StreamUpgradeAcceptor
繼承
StreamUpgradeAcceptor
衍生

備註

資料流升級的一個範例,就是直接在傳輸資料流的上方建立壓縮資料流。An example of a stream upgrade is to build a compression stream directly on top of the transport stream.

這個類別會搭配 StreamUpgradeInitiatorStreamUpgradeProvider 使用,以實作自訂資料流升級。This class is used with StreamUpgradeInitiator and StreamUpgradeProvider to implement a custom stream upgrade.

如需升級程序的詳細說明,請參閱 StreamUpgradeProviderFor a detailed description of the upgrade process, see StreamUpgradeProvider.

建構函式

StreamUpgradeAcceptor()

初始化 StreamUpgradeAcceptor 類別的新執行個體。Initializes a new instance of the StreamUpgradeAcceptor class.

方法

AcceptUpgrade(Stream)

升級傳輸資料流,並且傳回升級的資料流。Upgrades the transport stream and returns the upgraded stream.

BeginAcceptUpgrade(Stream, AsyncCallback, Object)

AcceptUpgrade(Stream) 的非同步版本。Asynchronous version of AcceptUpgrade(Stream).

CanUpgrade(String)

判斷這個升級接受器是否支援要求的升級。Determines whether the upgrade requested is supported by this upgrade acceptor.

EndAcceptUpgrade(IAsyncResult)

AcceptUpgrade(Stream) 的非同步版本。Asynchronous version of AcceptUpgrade(Stream).

Equals(Object)

判斷指定的物件是否等於目前的物件。Determines whether the specified object is equal to the current object.

(繼承來源 Object)
GetHashCode()

作為預設雜湊函數。Serves as the default hash function.

(繼承來源 Object)
GetType()

取得目前執行個體的 TypeGets the Type of the current instance.

(繼承來源 Object)
MemberwiseClone()

建立目前 Object 的淺層複製。Creates a shallow copy of the current Object.

(繼承來源 Object)
ToString()

傳回代表目前物件的字串。Returns a string that represents the current object.

(繼承來源 Object)

適用於

另請參閱