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ących filtrów 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 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 i dodaje dane filtru pasujących filtrów do kolekcji.

Uwagi

Użyj tej metody, jeśli oczekuje się, że więcej niż jeden filtr pasuje do komunikatu lub komunikatu buforowanego, a tylko FilterData jest 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

Message do przetestowania.

results
ICollection<TFilterData>

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

Zwraca

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

Implementuje

Wyjątki

message lub results jest null.

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

Uwagi

Użyj tej metody, jeśli oczekuje się, że więcej niż jeden filtr jest zgodny z komunikatem, wymagane są tylko dane filtru, a treść komunikatu nie jest sprawdzana.

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

Ta metoda implementuje 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

MessageBuffer do przetestowania.

results
ICollection<TFilterData>

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

Zwraca

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

Implementuje

Wyjątki

messageBuffer lub results jest null.

Uwagi

Użyj tej metody, jeśli oczekuje się, że więcej niż jeden filtr będzie pasował do buforowanego komunikatu i wymagane są tylko dane filtru.

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

Ta metoda implementuje GetMatchingValues.

Dotyczy

GetMatchingValues(SeekableXPathNavigator, ICollection<TFilterData>)

Zwraca wartość wskazującą, czy kryterium dopasowania co najmniej jednego SeekableXPathNavigator w tabeli jest spełnione przez navigator 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

SeekableXPathNavigator do przetestowania.

results
ICollection<TFilterData>

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

Zwraca

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

Wyjątki

navigator lub results jest null.

Uwagi

Użyj tej metody, jeśli oczekuje się, że więcej niż jeden filtr będzie zgodny z kryteriami zapytania dokumentu XML pochodzącego z zoptymalizowanego nawigatora XPath SeekableXPathNavigator i wymagane są tylko dane filtru.

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

Dotyczy

GetMatchingValues(XPathNavigator, ICollection<TFilterData>)

Zwraca wartość wskazującą, czy kryterium dopasowania co najmniej jednego XPathNavigator w tabeli jest spełnione przez navigator 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

XPathNavigator do przetestowania.

results
ICollection<TFilterData>

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

Zwraca

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

Wyjątki

navigator lub results jest null.

Uwagi

Użyj tej metody, jeśli oczekuje się, że więcej niż jeden filtr będzie zgodny z kryteriami zapytania dokumentu XML pochodzącego z zoptymalizowanego nawigatora XPath SeekableXPathNavigator i wymagane są tylko dane filtru.

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

Dotyczy