Język

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

Nazwa Opis
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 i tylko FilterData ten filtr 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

Element do testowania Message .

results
ICollection<TFilterData>

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

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 ma wartość 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 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 do testowania MessageBuffer .

results
ICollection<TFilterData>

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

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 ma wartość 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 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 do testowania SeekableXPathNavigator .

results
ICollection<TFilterData>

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

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 ma wartość 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 SeekableXPathNavigator XPath, a 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 do testowania XPathNavigator .

results
ICollection<TFilterData>

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

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 ma wartość 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 SeekableXPathNavigator XPath, a wymagane są tylko dane filtru.

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

Dotyczy