StreamUpgradeBindingElement 類別

定義

將自訂資料流升級提供者新增至自訂繫結中。Adds a custom stream upgrade provider to a custom binding.

public ref class StreamUpgradeBindingElement abstract : System::ServiceModel::Channels::BindingElement
public abstract class StreamUpgradeBindingElement : System.ServiceModel.Channels.BindingElement
type StreamUpgradeBindingElement = class
    inherit BindingElement
Public MustInherit Class StreamUpgradeBindingElement
Inherits BindingElement
繼承
StreamUpgradeBindingElement

備註

若要指示應該使用自訂資料流升級提供者,請在自訂繫結上實作會實作這個 abstract 類別的繫結項目。To indicate that a custom stream upgrade provider should be used, implement a binding element that implements this abstract class on the custom binding.

這個 abstract 類別是由以下項目所實作:This abstract class is implemented by:

建構函式

StreamUpgradeBindingElement()

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

StreamUpgradeBindingElement(StreamUpgradeBindingElement)

從現有的執行個體初始化 StreamUpgradeBindingElement 類別的新執行個體。Initializes a new instance of the StreamUpgradeBindingElement class from an existing instance.

方法

BuildChannelFactory<TChannel>(BindingContext)

初始化通道處理站,以便從繫結內容產生指定型別的通道。Initializes a channel factory for producing channels of a specified type from the binding context.

(繼承來源 BindingElement)
BuildChannelListener<TChannel>(BindingContext)

初始化通道接聽項,以便從繫結內容接受指定之類型的通道。Initializes a channel listener to accept channels of a specified type from the binding context.

(繼承來源 BindingElement)
BuildClientStreamUpgradeProvider(BindingContext)

根據提供的通道內容,於 StreamUpgradeProvider 的用戶端上建立執行個體。Creates an instance on the client of the StreamUpgradeProvider based on the channel context provided.

BuildServerStreamUpgradeProvider(BindingContext)

根據提供的通道內容,於 StreamUpgradeProvider 的伺服器上建立執行個體。Creates an instance on the server of the StreamUpgradeProvider based on the channel context provided.

CanBuildChannelFactory<TChannel>(BindingContext)

傳回值,指出繫結項目是否可以建置 (Build) 特定通道類型的通道處理站。Returns a value that indicates whether the binding element can build a channel factory for a specific type of channel.

(繼承來源 BindingElement)
CanBuildChannelListener<TChannel>(BindingContext)

傳回值,指出繫結項目是否可以建置特定通道型別的通道接聽程式。Returns a value that indicates whether the binding element can build a listener for a specific type of channel.

(繼承來源 BindingElement)
Clone()

在衍生類別中覆寫時,傳回繫結項目物件的複本。When overridden in a derived class, returns a copy of the binding element object.

(繼承來源 BindingElement)
Equals(Object)

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

(繼承來源 Object)
GetHashCode()

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

(繼承來源 Object)
GetProperty<T>(BindingContext)

在衍生類別中覆寫時,從繫結堆疊的適當層次中,傳回要求的型別物件 (如果有的話)。When overridden in a derived class, returns a typed object requested, if present, from the appropriate layer in the binding stack.

(繼承來源 BindingElement)
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)

適用於

另請參閱