MessageFilterTable<TFilterData>.GetMatchingFilters Method (MessageBuffer, ICollection<MessageFilter>)
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 matching filters from the highest priority set of filters in which at least one match is found to a collection.
Assembly: System.ServiceModel (in System.ServiceModel.dll)
public bool GetMatchingFilters( MessageBuffer buffer, ICollection<MessageFilter> results )
Return ValueType: System.Boolean
true if match criterion of at least one filter in the table is satisfied by message; false if no filter is satisfied.
Use this method when more than one filter is expected to match the buffered message and the matching filters are required.
The filters in the table are allowed to inspect the message body.
The matching MessageFilter objects are stored in the results parameter of ICollection<T>. The FilterData can then be recovered from the filter table using these filters as keys with the methods provided by IDictionary<TKey, TValue>.
This method implements GetMatchingFilters.
Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.