Export (0) Print
Expand All

MessageQueryCollection.Evaluate Method

Runs a query against the message and returns a value that satisfies the query.

This member is overloaded. For complete information about this member, including syntax, usage, and examples, click a name in the overload list.

  Name Description
Public method Evaluate<TResult>(Message) Runs a query against the message and returns a result. The body cannot be queried.
Public method Evaluate<TResult>(MessageBuffer) Runs a query against the message and returns a result.
Top

The difference between the two overloads is that one takes a Message parameter and is not permitted to examine the body. The other takes a MessageBuffer parameter and can examine any part of the message. Message headers are automatically buffered and can be queried without being consumed. However, if the body is to be queried, then the entire message must be buffered because an unbuffered message body can be consumed by the query.

Show:
© 2014 Microsoft