XPathMessageFilterTable<TFilterData>.GetMatchingValues 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
返回一个值,该值指示指定的消息或缓冲消息是否满足表中至少一个筛选器的匹配条件,并将匹配筛选器的 FilterData 添加到集合中。
重载
| GetMatchingValues(Message, ICollection<TFilterData>) |
返回一个值,该值指示指定的消息是否满足表中至少一个筛选器的匹配条件,并将匹配筛选器的筛选数据添加到集合中。 |
| GetMatchingValues(MessageBuffer, ICollection<TFilterData>) |
返回一个值,该值指示指定的缓冲消息是否满足表中至少一个筛选器的匹配条件,并将匹配筛选器的筛选数据添加到集合中。 |
| GetMatchingValues(SeekableXPathNavigator, ICollection<TFilterData>) |
返回一个值,该值指示 |
| GetMatchingValues(XPathNavigator, ICollection<TFilterData>) |
返回一个值,该值指示 |
注解
如果预期有多个筛选器与消息或缓冲消息匹配,并且只需要 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
参数
- results
- ICollection<TFilterData>
将匹配筛选器的筛选器数据的引用参数存储在泛型 ICollection<T><FilterData>中。
返回
如果表中至少有一个筛选器的匹配条件满足 message,则 true;如果未满足任何筛选器,false。
实现
例外
message 或 resultsnull。
筛选器尝试检查消息正文的内容。
注解
当预期有多个筛选器与消息匹配时,请使用此方法,仅需要筛选数据,并且不会检查消息正文。
匹配 MessageFilter 对象的筛选器数据存储在 ICollection<T>的 results 参数中。
此方法实现 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>中。
返回
如果表中至少有一个筛选器的匹配条件由 message满足,则 true ;如果未满足任何筛选器,false。
实现
例外
messageBuffer 或 resultsnull。
注解
如果预期有多个筛选器与缓冲消息匹配,并且只需要筛选器数据,请使用此方法。
匹配 XPathMessageFilter 对象的筛选器数据存储在 resultsICollection<T>中。
此方法实现 GetMatchingValues。
适用于
GetMatchingValues(SeekableXPathNavigator, ICollection<TFilterData>)
返回一个值,该值指示 navigator 是否满足表中至少一个 SeekableXPathNavigator 的匹配条件,并将匹配筛选器的筛选器数据添加到集合中。
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
参数
- navigator
- SeekableXPathNavigator
要测试的 SeekableXPathNavigator。
- results
- ICollection<TFilterData>
将匹配筛选器的筛选器数据的引用参数存储在泛型 ICollection<T><FilterData>中。
返回
如果表中至少有一个筛选器的匹配条件由 navigator满足,则 true ;如果未满足任何筛选器,false。
例外
navigator 或 resultsnull。
注解
当预期有多个筛选器与从优化的 XPath 导航器派生的 XML 文档的查询条件 SeekableXPathNavigator 并且只需要筛选器数据时,请使用此方法。
匹配 XPathMessageFilter 对象的筛选器数据存储在 ICollection<T>的 results 参数中。
适用于
GetMatchingValues(XPathNavigator, ICollection<TFilterData>)
返回一个值,该值指示 navigator 是否满足表中至少一个 XPathNavigator 的匹配条件,并将匹配筛选器的筛选器数据添加到集合中。
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>中。
返回
如果表中至少有一个筛选器的匹配条件由 navigator满足,则 true ;如果未满足任何筛选器,false。
例外
navigator 或 resultsnull。
注解
当预期有多个筛选器与从优化的 XPath 导航器派生的 XML 文档的查询条件 SeekableXPathNavigator 并且只需要筛选器数据时,请使用此方法。
匹配 XPathMessageFilter 对象的筛选器数据存储在 ICollection<T>的 results 参数中。