PnrpPeerResolverBindingElement 類別

定義

定義用來建立對等名稱解析通訊協定 (PNRP) 對等解析程式的繫結程序項目。Defines the binding element used to create a Peer Name Resolution Protocol (PNRP) peer resolver.

public ref class PnrpPeerResolverBindingElement sealed : System::ServiceModel::Channels::PeerResolverBindingElement
public sealed class PnrpPeerResolverBindingElement : System.ServiceModel.Channels.PeerResolverBindingElement
type PnrpPeerResolverBindingElement = class
    inherit PeerResolverBindingElement
Public NotInheritable Class PnrpPeerResolverBindingElement
Inherits PeerResolverBindingElement
繼承
PnrpPeerResolverBindingElement

備註

若要從這個類別的執行個體建立對等解析程式,請在建構此執行個體之後呼叫 CreatePeerResolverTo create a peer resolver from an instance of this class, call CreatePeerResolver after the instance has been constructed.

建構函式

PnrpPeerResolverBindingElement()

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

PnrpPeerResolverBindingElement(PeerReferralPolicy)

使用提供的對等轉介原則,初始化 PnrpPeerResolverBindingElement 類別的新執行個體。Initializes a new instance of the PnrpPeerResolverBindingElement class with the provided peer referral policy.

屬性

ReferralPolicy

取得或設定由此繫結項目建立的 PNRP 對等解析程式轉介原則。Gets or sets the referral policy for the PNRP peer resolver created by this binding element.

方法

BuildChannelFactory<TChannel>(BindingContext)

建立可用來建立傳送訊息之通道的通道處理站。Creates a channel factory that can be used to create a channel for sending messages.

BuildChannelListener<TChannel>(BindingContext)

建立指定之型別的通道接聽程式來接收訊息。Creates a channel listener of the specified type for receiving messages.

CanBuildChannelFactory<TChannel>(BindingContext)

判斷是否可以建置指定之型別的通道處理站。Determines whether a channel factory of the specified type can be built.

CanBuildChannelListener<TChannel>(BindingContext)

判斷是否可以建置指定之型別的通道接聽項。Determines whether a channel listener of the specified type can be built.

Clone()

建立目前繫結項目複本的新執行個體。Creates a new instance that is a copy of the current binding element.

CreatePeerResolver()

建立 PNRP 特定的 PeerResolver 執行個體。Creates a PNRP-specific PeerResolver instance.

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 物件傳回屬性。Returns a property from the specified BindingContext 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)

適用於