EndpointAddressMessageFilter 类

定义

表示用于测试消息是否满足指定终结点地址的要求的查询。Represents a query that tests whether a message satisfies the requirements of a specified endpoint address.

public ref class EndpointAddressMessageFilter : System::ServiceModel::Dispatcher::MessageFilter
public class EndpointAddressMessageFilter : System.ServiceModel.Dispatcher.MessageFilter
type EndpointAddressMessageFilter = class
    inherit MessageFilter
Public Class EndpointAddressMessageFilter
Inherits MessageFilter
继承
EndpointAddressMessageFilter

注解

此筛选器可测试消息是否满足特定终结点地址的要求。This filter tests whether a message satisfies a particular endpoint address. EndpointAddress 对象包括一个 URI 和一个可选的寻址标头的集合。An EndpointAddress object includes a URI and an optional collection of addressing headers. 对寻址标头和消息头进行规范化,目的是为了进行相等性比较。The addressing and message headers are canonicalized in order to be compared for equality. 如果参数在 EndpointAddress 中出现的次数多于一次,则相应的标头必须在消息中至少显示相同的次数。If a parameter appears more than once in an EndpointAddress, the corresponding header must appear in the message at least that many times.

IIS 和基础文件系统(NTFS 或 FAT)不区分大小写。IIS and the underlying file system (NTFS or FAT) are case-insensitive. 此类进行的 URI 比较也不区分大小写。URI comparisons done by this class are also case-insensitive. 例如http://www.microsoft.com , 将计算为http://WWW.microsoft.com等于。So, for example, http://www.microsoft.com is evaluated as equal to http://WWW.microsoft.com.

构造函数

EndpointAddressMessageFilter(EndpointAddress)

利用用以测试消息的指定地址初始化 EndpointAddressMessageFilter 类的新实例。Initializes a new instance of the EndpointAddressMessageFilter class with a specified address against which to test a message.

EndpointAddressMessageFilter(EndpointAddress, Boolean)

初始化 EndpointAddressMessageFilter 类的新实例。Initializes a new instance of the EndpointAddressMessageFilter class.

属性

Address

获取 EndpointAddressMessageFilter 用以测试消息的地址。Gets the address that the EndpointAddressMessageFilter tests messages against.

IncludeHostNameInComparison

获取一个值,该值指示在终结点地址比较中是否包含主机名称。Gets a value that indicates whether the host name is included in the endpoint address comparison.

方法

CreateFilterTable<FilterData>()

创建一个可同时利用多个终结点地址对一个消息进行测试的新筛选器表。Creates a new filter table that tests a message against multiple endpoint addresses simultaneously.

Equals(Object)

确定指定的对象是否等于当前对象。Determines whether the specified object is equal to the current object.

(继承自 Object)
GetHashCode()

用作默认哈希函数。Serves as the default hash function.

(继承自 Object)
GetType()

获取当前实例的 TypeGets the Type of the current instance.

(继承自 Object)
Match(Message)

测试消息是否满足指定的终结点地址。Tests whether a message satisfies the specified endpoint address.

Match(MessageBuffer)

测试缓冲消息是否满足指定的终结点地址。Tests whether a buffered message satisfies the specified endpoint address.

MemberwiseClone()

创建当前 Object 的浅表副本。Creates a shallow copy of the current Object.

(继承自 Object)
ToString()

返回一个表示当前对象的 string。Returns a string that represents the current object.

(继承自 Object)

适用于