PrefixEndpointAddressMessageFilter 類別

定義

表示查詢,其會使用 URI 元件的「最長的前置詞比對」來測試訊息是否符合 EndpointAddress。

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

備註

EndpointAddress 物件會包含 URI 和選擇性定址標頭的集合。 定址和訊息標頭會進行標準化來比較彼此是否相等。 如果參數在 EndpointAddress 中出現一次以上,對應的標頭也必須至少出現在訊息中相同次數。

此篩選準則會執行與相同的查詢 EndpointAddressMessageFilter ,不同之處在于訊息是否符合端點位址的測試是以 最長前置詞相符 來完成。 這意味著篩選條件中指定的 URI 不一定完全符合訊息的 URI,但是一定要包含在該 URI 中做為前置詞。 例如,如果篩選條件指定位址 "www.foo.com",而訊息的位址為 "www.foo.com/customerA",這樣就會判定為符合篩選查詢條件的 URI 部分。 不過,仍然要繼續進行篩選查詢之標頭部分的比對。

Internet Information Services (IIS) 和基礎檔案系統 (NTFS 或 FAT) 會區分大小寫。 這個類別所執行的 URI 比較也會區分大小寫。 例如, http://www.microsoft.com 會評估為等於 http://WWW.microsoft.com

建構函式

PrefixEndpointAddressMessageFilter(EndpointAddress)

初始化 PrefixEndpointAddressMessageFilter 類別的新執行個體。

PrefixEndpointAddressMessageFilter(EndpointAddress, Boolean)

初始化 PrefixEndpointAddressMessageFilter 類別的新執行個體。

屬性

Address

取得 PrefixEndpointAddressMessageFilter 測試訊息時所依據的端點位址。

IncludeHostNameInComparison

取得值,這個值會指出主機名稱是否包含在端點位址比較中。

方法

CreateFilterTable<FilterData>()

建立會同時依據多個端點位址來測試訊息的新篩選資料表。

Equals(Object)

判斷指定的物件是否等於目前的物件。

(繼承來源 Object)
GetHashCode()

做為預設雜湊函式。

(繼承來源 Object)
GetType()

取得目前執行個體的 Type

(繼承來源 Object)
Match(Message)

測試訊息是否符合指定的端點位址。

Match(MessageBuffer)

測試緩衝的訊息是否符合指定的端點位址。

MemberwiseClone()

建立目前 Object 的淺層複製。

(繼承來源 Object)
ToString()

傳回代表目前物件的字串。

(繼承來源 Object)

適用於