XPathMessageQueryCollection.Evaluate Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Runs a query against the message.
Overloads
Evaluate<TResult>(Message) |
Runs a query against the message. The body cannot be queried. |
Evaluate<TResult>(MessageBuffer) |
Runs an XPath query against the message. |
Evaluate<TResult>(Message)
Runs a query against the message. The body cannot be queried.
public:
generic <typename TResult>
override System::Collections::Generic::IEnumerable<System::Collections::Generic::KeyValuePair<System::ServiceModel::Dispatcher::MessageQuery ^, TResult>> ^ Evaluate(System::ServiceModel::Channels::Message ^ message);
public override System.Collections.Generic.IEnumerable<System.Collections.Generic.KeyValuePair<System.ServiceModel.Dispatcher.MessageQuery,TResult>> Evaluate<TResult> (System.ServiceModel.Channels.Message message);
override this.Evaluate : System.ServiceModel.Channels.Message -> seq<System.Collections.Generic.KeyValuePair<System.ServiceModel.Dispatcher.MessageQuery, 'Result>>
Public Overrides Function Evaluate(Of TResult) (message As Message) As IEnumerable(Of KeyValuePair(Of MessageQuery, TResult))
Type Parameters
- TResult
The type of the object to return.
Parameters
- message
- Message
The message to query.
Returns
An enumerable collection of results that satisfy the query.
Applies to
Evaluate<TResult>(MessageBuffer)
Runs an XPath query against the message.
public:
generic <typename TResult>
override System::Collections::Generic::IEnumerable<System::Collections::Generic::KeyValuePair<System::ServiceModel::Dispatcher::MessageQuery ^, TResult>> ^ Evaluate(System::ServiceModel::Channels::MessageBuffer ^ buffer);
public override System.Collections.Generic.IEnumerable<System.Collections.Generic.KeyValuePair<System.ServiceModel.Dispatcher.MessageQuery,TResult>> Evaluate<TResult> (System.ServiceModel.Channels.MessageBuffer buffer);
override this.Evaluate : System.ServiceModel.Channels.MessageBuffer -> seq<System.Collections.Generic.KeyValuePair<System.ServiceModel.Dispatcher.MessageQuery, 'Result>>
Public Overrides Function Evaluate(Of TResult) (buffer As MessageBuffer) As IEnumerable(Of KeyValuePair(Of MessageQuery, TResult))
Type Parameters
- TResult
The type of result to return.
Parameters
- buffer
- MessageBuffer
The message to query.
Returns
An enumerable collection of results that satisfy the query.