PeerResolverBindingElement 類別

定義

針對用來建立對等解析程式物件的繫結項目定義抽象基底類別。Defines the abstract base class for binding elements used to create peer resolver objects.

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

備註

這個類別會針對用來建立對等解析程式物件的所有繫結項目定義抽象基底類別。This class defines the abstract base class for all binding elements used to create peer resolver objects. 如需此類別的特定實作,請參閱 PnrpPeerResolverBindingElementPeerCustomResolverBindingElement 的文件。For specific implementations of this class, please see the documentation for PnrpPeerResolverBindingElement and PeerCustomResolverBindingElement.

建構函式

PeerResolverBindingElement()

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

PeerResolverBindingElement(PeerResolverBindingElement)

藉由複製提供的 PeerResolverBindingElement 物件,初始化 PeerResolverBindingElement 類別的新執行個體。Initializes a new instance of the PeerResolverBindingElement class by duplicating the provided PeerResolverBindingElement object.

屬性

ReferralPolicy

取得或設定使用此類別實作所建立繫結項目建立的對等解析程式轉介原則。Gets or sets the referral policy for peer resolvers created with binding elements created by implementations of this class.

方法

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

使用這個繫結項目上所定義的設定,建立對等解析程式物件。Creates a peer resolver object with the settings defined on this binding element.

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)

適用於