TransportBindingElement 類別

定義

表示傳輸繫結項目的 abstract 基底類別。An abstract base class that represents a transport binding element.

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

備註

這個類別會造成 Windows Communication Foundation (WCF)所提供之所有傳輸繫結項目通用的屬性。This class factors out properties that are common to all of the transport binding elements provided by the Windows Communication Foundation (WCF). 它會處理基底傳輸設定的轉譯,使其成為執行階段顯示。It handles the translation of the base transport settings into run-time manifestations. 它會委派其實體衍生類別傳輸繫結中的傳輸特有設定 (例如,HTTP 的 HttpProxySettings) 邏輯的轉譯,包括下列類別:It delegates the translation of transport-specific settings (for example, HttpProxySettings for HTTP) logic in its concrete derived class transport bindings, which include the following classes:

注意

自訂傳輸繫結項目開發人員必須從這個類別繼承,此類別則是衍生自 BindingElement 類別。Custom transport binding element developers must inherit from this class, which derives from the BindingElement class.

建構函式

TransportBindingElement()

建立這個類別的新執行個體。Creates a new instance of this class.

TransportBindingElement(TransportBindingElement)

從現有的執行個體建立這個類別的新執行個體。Creates a new instance of this class from an existing instance.

屬性

ManualAddressing

取得或設定值,這個值會指出是否需要訊息的手動定址。Gets or sets a value that indicates whether manual addressing of the message is required.

MaxBufferPoolSize

取得或設定傳輸所使用之任何緩衝區集區的大小上限 (以位元組為單位)。Gets or sets the maximum size, in bytes, of any buffer pools used by the transport.

MaxReceivedMessageSize

取得或設定可接收之可允許的訊息大小上限 (以位元組為單位)。Gets or sets the maximum allowable message size, in bytes, that can be received.

Scheme

取得用於傳輸的 URI 配置。Gets the URI scheme for the transport.

方法

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)
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)

從指定的 BindingContext中取得屬性。Gets a property from the specified BindingContext.

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)

適用於