XPathMessageFilterTable<TFilterData>.GetMatchingValues 方法

定义

返回一个值,该值指示指定的消息或缓冲消息是否满足表中至少一个筛选器的匹配条件,然后将匹配筛选器的 FilterData 添加到集合。Returns a value that indicates whether the match criterion of at least one filter in the table is satisfied by the specified message or buffered message and adds the FilterData of the matching filters to a collection.

重载

GetMatchingValues(Message, ICollection<TFilterData>)

返回一个值,该值指示指定的消息是否满足表中至少一个筛选器的匹配条件,然后将匹配筛选器的筛选数据添加到集合。Returns a value that indicates whether the match criterion of at least one filter in the table is satisfied by the specified message and adds the filter data of the matching filters to a collection.

GetMatchingValues(MessageBuffer, ICollection<TFilterData>)

返回一个值,该值指示指定的缓冲消息是否满足表中至少一个筛选器的匹配条件,然后将匹配筛选器的筛选数据添加到集合。Returns a value that indicates whether the match criterion of at least one filter in the table is satisfied by the specified buffered message and adds the filter data of the matching filters to a collection.

GetMatchingValues(SeekableXPathNavigator, ICollection<TFilterData>)

返回一个值,该值指示 SeekableXPathNavigator 是否满足表中至少一个 navigator 的匹配条件,然后将匹配筛选器的筛选数据添加到集合。Returns a value that indicates whether the match criterion of at least one SeekableXPathNavigator in the table is satisfied by the navigator and adds the filter data of the matching filters to a collection.

GetMatchingValues(XPathNavigator, ICollection<TFilterData>)

返回一个值,该值指示 XPathNavigator 是否满足表中至少一个 navigator 的匹配条件,然后将匹配筛选器的筛选数据添加到集合。Returns a value that indicates whether the match criterion of at least one XPathNavigator in the table is satisfied by the navigator and adds the filter data of the matching filters to a collection.

注解

当预期有多个筛选器与消息或缓冲消息相匹配,并且只需要 FilterData 时,请使用此方法。Use this method when more than one filter is expected to match the message or buffered message and only the FilterData is required.

GetMatchingValues(Message, ICollection<TFilterData>)

返回一个值,该值指示指定的消息是否满足表中至少一个筛选器的匹配条件,然后将匹配筛选器的筛选数据添加到集合。Returns a value that indicates whether the match criterion of at least one filter in the table is satisfied by the specified message and adds the filter data of the matching filters to a collection.

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

参数

message
Message

要测试的 MessageThe Message to test.

results
ICollection<TFilterData>

在泛型 ICollection<T><FilterData> 中存储匹配筛选器的筛选数据的引用参数。The reference parameter that stores the filter data of the matching filters in a generic ICollection<T><FilterData>.

返回

如果 message 满足表中至少一个筛选器的匹配条件,则为 true;如果不满足任何筛选器,则为 falsetrue if match criterion of at least one filter in the table is satisfied by message; false if no filter is satisfied.

实现

异常

messageresultsnullmessage or results is null.

筛选器试图检查消息正文的内容。A filter attempted to examine the contents of the message body.

注解

当预期会有多个筛选器与消息相匹配,同时只需要筛选数据,且不检查消息的正文时,请使用此方法。Use this method when more than one filter is expected to match the message, only the filter data is required, and the body of the message is not inspected.

匹配的 MessageFilter 对象的筛选数据存储在 resultsICollection<T> 参数中。The filter data of the matching MessageFilter objects are stored in the results parameter of ICollection<T>.

此方法实现 GetMatchingValuesThis method implements GetMatchingValues.

GetMatchingValues(MessageBuffer, ICollection<TFilterData>)

返回一个值,该值指示指定的缓冲消息是否满足表中至少一个筛选器的匹配条件,然后将匹配筛选器的筛选数据添加到集合。Returns a value that indicates whether the match criterion of at least one filter in the table is satisfied by the specified buffered message and adds the filter data of the matching filters to a collection.

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

参数

messageBuffer
MessageBuffer

要测试的 MessageBufferThe MessageBuffer to test.

results
ICollection<TFilterData>

在泛型 ICollection<T><FilterData> 中存储匹配筛选器的筛选数据的引用参数。The reference parameter that stores the filter data of the matching filters in a generic ICollection<T><FilterData>.

返回

如果 message 满足表中至少一个筛选器的匹配条件,则为 true;如果不满足任何筛选器,则为 falsetrue if the match criterion of at least one filter in the table is satisfied by message; false if no filter is satisfied.

实现

异常

messageBufferresultsnullmessageBuffer or results is null.

注解

当预期有多个筛选器与缓冲消息相匹配,并且只需要筛选数据时,请使用此方法。Use this method when more than one filter is expected to match the buffered message and only the filter data is required.

匹配的 XPathMessageFilter 对象的筛选数据存储在 resultsICollection<T> 中。The filter data of the matching XPathMessageFilter objects are stored in the resultsICollection<T>.

此方法实现 GetMatchingValuesThis method implements GetMatchingValues.

GetMatchingValues(SeekableXPathNavigator, ICollection<TFilterData>)

返回一个值,该值指示 SeekableXPathNavigator 是否满足表中至少一个 navigator 的匹配条件,然后将匹配筛选器的筛选数据添加到集合。Returns a value that indicates whether the match criterion of at least one SeekableXPathNavigator in the table is satisfied by the navigator and adds the filter data of the matching filters to a collection.

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> 中存储匹配筛选器的筛选数据的引用参数。The reference parameter that stores the filter data of the matching filters in a generic ICollection<T><FilterData>.

返回

如果 true 满足表中至少一个筛选器的匹配条件,则为 navigator;如果不满足任何筛选器,则为 falsetrue if the match criterion of at least one filter in the table is satisfied by the navigator; false if no filter is satisfied.

异常

navigatorresultsnullnavigator or results is null.

注解

当预期会有多个筛选器与派生自优化的 XPath 导航器 SeekableXPathNavigator 的 XML 文档的查询条件相匹配,并且只需要筛选数据时,请使用此方法。Use this method when more than one filter is expected to match the query criteria of the XML document derived from the optimized XPath navigator SeekableXPathNavigator and only the filter data is required.

匹配的 XPathMessageFilter 对象的筛选数据存储在 resultsICollection<T> 参数中。The filter data of the matching XPathMessageFilter objects are stored in the results parameter of ICollection<T>.

GetMatchingValues(XPathNavigator, ICollection<TFilterData>)

返回一个值,该值指示 XPathNavigator 是否满足表中至少一个 navigator 的匹配条件,然后将匹配筛选器的筛选数据添加到集合。Returns a value that indicates whether the match criterion of at least one XPathNavigator in the table is satisfied by the navigator and adds the filter data of the matching filters to a collection.

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

要测试的 XPathNavigatorThe XPathNavigator to test.

results
ICollection<TFilterData>

在泛型 ICollection<T><FilterData> 中存储匹配筛选器的筛选数据的引用参数。The reference parameter that stores the filter data of the matching filters in a generic ICollection<T><FilterData>.

返回

如果 true 满足表中至少一个筛选器的匹配条件,则为 navigator;如果不满足任何筛选器,则为 falsetrue if the match criterion of at least one filter in the table is satisfied by the navigator; false if no filter is satisfied.

异常

navigatorresultsnullnavigator or results is null.

注解

当预期会有多个筛选器与派生自优化的 XPath 导航器 SeekableXPathNavigator 的 XML 文档的查询条件相匹配,并且只需要筛选数据时,请使用此方法。Use this method when more than one filter is expected to match the query criteria of the XML document derived from the optimized XPath navigator SeekableXPathNavigator and only the filter data is required.

匹配的 XPathMessageFilter 对象的筛选数据存储在 resultsICollection<T> 参数中。The filter data of the matching XPathMessageFilter objects are stored in the results parameter of ICollection<T>.

适用于