語言

XPathMessageFilterTable<TFilterData>.GetMatchingValues 方法

定義

回傳一個值,表示表中至少一個濾波器的匹配準則是否被指定的訊息或緩衝訊息滿足,並將匹配的濾波器加入 FilterData 集合。

多載

名稱 Description
GetMatchingValues(Message, ICollection<TFilterData>)

回傳一個值,表示該訊息是否滿足表中至少一個濾波器的匹配標準,並將該濾波器的濾波資料加入集合。

GetMatchingValues(MessageBuffer, ICollection<TFilterData>)

回傳一個值,指示表中至少一個濾波器的匹配條件是否被指定的緩衝訊息滿足,並將匹配濾波器的濾波器資料加入集合。

GetMatchingValues(SeekableXPathNavigator, ICollection<TFilterData>)

回傳一個值,表示表中至少一個 SeekableXPathNavigator 的匹配條件是否被 navigator 滿足,並將匹配濾波器的濾波器資料加入集合中。

GetMatchingValues(XPathNavigator, ICollection<TFilterData>)

回傳一個值,表示表中至少一個 XPathNavigator 的匹配條件是否被 navigator 滿足,並將匹配濾波器的濾波器資料加入集合中。

備註

當預期多個過濾器會匹配訊息或緩衝訊息,且只需 時 FilterData ,使用此方法。

GetMatchingValues(Message, ICollection<TFilterData>)

回傳一個值,表示該訊息是否滿足表中至少一個濾波器的匹配標準,並將該濾波器的濾波資料加入集合。

public:
 virtual bool GetMatchingValues(System::ServiceModel::Channels::Message ^ message, System::Collections::Generic::ICollection<TFilterData> ^ results);
public bool GetMatchingValues(System.ServiceModel.Channels.Message message, System.Collections.Generic.ICollection<TFilterData> results);
abstract member GetMatchingValues : System.ServiceModel.Channels.Message * System.Collections.Generic.ICollection<'FilterData> -> bool
override this.GetMatchingValues : System.ServiceModel.Channels.Message * System.Collections.Generic.ICollection<'FilterData> -> bool
Public Function GetMatchingValues (message As Message, results As ICollection(Of TFilterData)) As Boolean

參數

message
Message

Message要測試。

results
ICollection<TFilterData>

參考參數,將匹配濾波器資料儲存在通用 ICollection<T><FilterData>中。

傳回

true若表中至少一個濾子的匹配準則滿足;messagefalse若無濾子被滿足。

實作

例外狀況

message 或 results 為 null。

一個過濾器試圖檢查訊息內容。

備註

當預期多個過濾器會匹配訊息,且只需篩選資料,且訊息正文不檢查時,請使用此方法。

匹配 MessageFilter 物件的濾波器資料儲存在 results 參數 ICollection<T>中。

這個方法會實作 GetMatchingValues。

適用於

GetMatchingValues(MessageBuffer, ICollection<TFilterData>)

回傳一個值,指示表中至少一個濾波器的匹配條件是否被指定的緩衝訊息滿足,並將匹配濾波器的濾波器資料加入集合。

public:
 virtual bool GetMatchingValues(System::ServiceModel::Channels::MessageBuffer ^ messageBuffer, System::Collections::Generic::ICollection<TFilterData> ^ results);
public bool GetMatchingValues(System.ServiceModel.Channels.MessageBuffer messageBuffer, System.Collections.Generic.ICollection<TFilterData> results);
abstract member GetMatchingValues : System.ServiceModel.Channels.MessageBuffer * System.Collections.Generic.ICollection<'FilterData> -> bool
override this.GetMatchingValues : System.ServiceModel.Channels.MessageBuffer * System.Collections.Generic.ICollection<'FilterData> -> bool
Public Function GetMatchingValues (messageBuffer As MessageBuffer, results As ICollection(Of TFilterData)) As Boolean

參數

messageBuffer
MessageBuffer

MessageBuffer要測試。

results
ICollection<TFilterData>

參考參數,將匹配濾波器資料儲存在通用 ICollection<T><FilterData>中。

傳回

true若表中至少一個濾子的匹配準則滿足;messagefalse若無任何濾子被滿足。

實作

例外狀況

messageBuffer 或 results 為 null。

備註

當預期有多個過濾器會匹配緩衝訊息,且只需過濾資料時,使用此方法。

匹配 XPathMessageFilter 物件的濾波器資料儲存在 resultsICollection<T>。

這個方法會實作 GetMatchingValues。

適用於

GetMatchingValues(SeekableXPathNavigator, ICollection<TFilterData>)

回傳一個值,表示表中至少一個 SeekableXPathNavigator 的匹配條件是否被 navigator 滿足,並將匹配濾波器的濾波器資料加入集合中。

public:
 bool GetMatchingValues(System::ServiceModel::Dispatcher::SeekableXPathNavigator ^ navigator, System::Collections::Generic::ICollection<TFilterData> ^ results);
public bool GetMatchingValues(System.ServiceModel.Dispatcher.SeekableXPathNavigator navigator, System.Collections.Generic.ICollection<TFilterData> results);
member this.GetMatchingValues : System.ServiceModel.Dispatcher.SeekableXPathNavigator * System.Collections.Generic.ICollection<'FilterData> -> bool
Public Function GetMatchingValues (navigator As SeekableXPathNavigator, results As ICollection(Of TFilterData)) As Boolean

參數

results
ICollection<TFilterData>

參考參數,將匹配濾波器資料儲存在通用 ICollection<T><FilterData>中。

傳回

true 若表中至少一個濾子的匹配準則由 navigator滿足; false 若無濾子滿足。

例外狀況

navigator 或 results 為 null。

備註

當預期有多個過濾器符合由優化 XPath 導航 SeekableXPathNavigator 器衍生的 XML 文件查詢條件,且只需篩選資料時,請使用此方法。

匹配 XPathMessageFilter 物件的濾波器資料儲存在 results 參數 ICollection<T>中。

適用於

GetMatchingValues(XPathNavigator, ICollection<TFilterData>)

回傳一個值,表示表中至少一個 XPathNavigator 的匹配條件是否被 navigator 滿足,並將匹配濾波器的濾波器資料加入集合中。

public:
 bool GetMatchingValues(System::Xml::XPath::XPathNavigator ^ navigator, System::Collections::Generic::ICollection<TFilterData> ^ results);
public bool GetMatchingValues(System.Xml.XPath.XPathNavigator navigator, System.Collections.Generic.ICollection<TFilterData> results);
member this.GetMatchingValues : System.Xml.XPath.XPathNavigator * System.Collections.Generic.ICollection<'FilterData> -> bool
Public Function GetMatchingValues (navigator As XPathNavigator, results As ICollection(Of TFilterData)) As Boolean

參數

navigator
XPathNavigator

XPathNavigator要測試。

results
ICollection<TFilterData>

參考參數,將匹配濾波器資料儲存在通用 ICollection<T><FilterData>中。

傳回

true 若表中至少一個濾子的匹配準則由 navigator滿足; false 若無濾子滿足。

例外狀況

navigator 或 results 為 null。

備註

當預期有多個過濾器符合由優化 XPath 導航 SeekableXPathNavigator 器衍生的 XML 文件查詢條件,且只需篩選資料時,請使用此方法。

匹配 XPathMessageFilter 物件的濾波器資料儲存在 results 參數 ICollection<T>中。

適用於