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)

返回一个值,该值指示绑定元素是否可以为特定类型的通道生成通道工厂。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)

适用于