XPathMessageFilterTable<TFilterData>.GetMatchingValues Metoda

Definicja

Zwraca wartość wskazującą, czy kryterium dopasowania co najmniej jednego filtru w tabeli jest spełnione przez określony komunikat lub komunikat buforowany i dodaje FilterData pasujące filtry do kolekcji.

Przeciążenia

GetMatchingValues(Message, ICollection<TFilterData>)

Zwraca wartość wskazującą, czy kryterium dopasowania co najmniej jednego filtru w tabeli jest spełnione przez określony komunikat i dodaje dane filtru pasujących filtrów do kolekcji.

GetMatchingValues(MessageBuffer, ICollection<TFilterData>)

Zwraca wartość wskazującą, czy kryterium dopasowania co najmniej jednego filtru w tabeli jest spełnione przez określony komunikat buforowany i dodaje dane filtru pasujących filtrów do kolekcji.

GetMatchingValues(SeekableXPathNavigator, ICollection<TFilterData>)

Zwraca wartość wskazującą, czy kryterium dopasowania co najmniej jednego SeekableXPathNavigator w tabeli jest spełnione przez navigator element i dodaje dane filtru pasujących filtrów do kolekcji.

GetMatchingValues(XPathNavigator, ICollection<TFilterData>)

Zwraca wartość wskazującą, czy kryterium dopasowania co najmniej jednego XPathNavigator w tabeli jest spełnione przez navigator element i dodaje dane filtru pasujących filtrów do kolekcji.

Uwagi

Użyj tej metody, gdy oczekuje się, że więcej niż jeden filtr będzie pasował do komunikatu lub komunikatu buforowanego, a tylko jest FilterData wymagany.

GetMatchingValues(Message, ICollection<TFilterData>)

Zwraca wartość wskazującą, czy kryterium dopasowania co najmniej jednego filtru w tabeli jest spełnione przez określony komunikat i dodaje dane filtru pasujących filtrów do kolekcji.

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

Parametry

message
Message

Element Message do przetestowania.

results
ICollection<TFilterData>

Parametr referencyjny, który przechowuje dane filtru pasujących filtrów w ogólnym ICollection<T><FilterData>parametrze .

Zwraca

true jeśli kryterium dopasowania co najmniej jednego filtru w tabeli jest spełnione przez messageparametr ; false jeśli żaden filtr nie jest spełniony.

Implementuje

Wyjątki

message lub results to null.

Filtr próbował zbadać zawartość treści wiadomości.

Uwagi

Użyj tej metody, gdy oczekuje się, że komunikat będzie zgodny z więcej niż jednym filtrem, wymagane są tylko dane filtru, a treść komunikatu nie jest sprawdzana.

Dane filtru pasujących MessageFilter obiektów są przechowywane w parametrze results .ICollection<T>

Ta metoda implementuje metodę GetMatchingValues.

Dotyczy

GetMatchingValues(MessageBuffer, ICollection<TFilterData>)

Zwraca wartość wskazującą, czy kryterium dopasowania co najmniej jednego filtru w tabeli jest spełnione przez określony komunikat buforowany i dodaje dane filtru pasujących filtrów do kolekcji.

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

Parametry

messageBuffer
MessageBuffer

Element MessageBuffer do przetestowania.

results
ICollection<TFilterData>

Parametr referencyjny, który przechowuje dane filtru pasujących filtrów w ogólnym ICollection<T><FilterData>parametrze .

Zwraca

true jeśli kryterium dopasowania co najmniej jednego filtru w tabeli jest spełnione przez messageparametr ; false jeśli żaden filtr nie jest spełniony.

Implementuje

Wyjątki

messageBuffer lub results to null.

Uwagi

Użyj tej metody, gdy oczekuje się, że więcej niż jeden filtr będzie pasować do buforowanego komunikatu, a tylko dane filtru są wymagane.

Dane filtru pasujących XPathMessageFilter obiektów są przechowywane w obiekcie resultsICollection<T>.

Ta metoda implementuje metodę GetMatchingValues.

Dotyczy

GetMatchingValues(SeekableXPathNavigator, ICollection<TFilterData>)

Zwraca wartość wskazującą, czy kryterium dopasowania co najmniej jednego SeekableXPathNavigator w tabeli jest spełnione przez navigator element i dodaje dane filtru pasujących filtrów do kolekcji.

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

Parametry

navigator
SeekableXPathNavigator

Element SeekableXPathNavigator do przetestowania.

results
ICollection<TFilterData>

Parametr referencyjny, który przechowuje dane filtru pasujących filtrów w ogólnym ICollection<T><FilterData>parametrze .

Zwraca

true jeśli kryterium dopasowania co najmniej jednego filtru w tabeli jest spełnione przez navigatorparametr ; false jeśli żaden filtr nie jest spełniony.

Wyjątki

navigator lub results to null.

Uwagi

Użyj tej metody, gdy oczekuje się, że więcej niż jeden filtr będzie pasować do kryteriów zapytania dokumentu XML pochodzącego z zoptymalizowanego nawigatora SeekableXPathNavigator XPath i wymagane są tylko dane filtru.

Dane filtru pasujących XPathMessageFilter obiektów są przechowywane w parametrze results .ICollection<T>

Dotyczy

GetMatchingValues(XPathNavigator, ICollection<TFilterData>)

Zwraca wartość wskazującą, czy kryterium dopasowania co najmniej jednego XPathNavigator w tabeli jest spełnione przez navigator element i dodaje dane filtru pasujących filtrów do kolekcji.

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

Parametry

navigator
XPathNavigator

Element XPathNavigator do przetestowania.

results
ICollection<TFilterData>

Parametr referencyjny, który przechowuje dane filtru pasujących filtrów w ogólnym ICollection<T><FilterData>parametrze .

Zwraca

true jeśli kryterium dopasowania co najmniej jednego filtru w tabeli jest spełnione przez navigatorparametr ; false jeśli żaden filtr nie jest spełniony.

Wyjątki

navigator lub results to null.

Uwagi

Użyj tej metody, gdy oczekuje się, że więcej niż jeden filtr będzie pasować do kryteriów zapytania dokumentu XML pochodzącego z zoptymalizowanego nawigatora SeekableXPathNavigator XPath i wymagane są tylko dane filtru.

Dane filtru pasujących XPathMessageFilter obiektów są przechowywane w parametrze results .ICollection<T>

Dotyczy