XPathMessageQueryCollection.Evaluate Method

Definition

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 override System.Collections.Generic.IEnumerable<System.Collections.Generic.KeyValuePair<System.ServiceModel.Dispatcher.MessageQuery,TResult>> Evaluate<TResult> (System.ServiceModel.Channels.Message message);

Type Parameters

TResult

The type of the object to return.

Parameters

message
Message

The message to query.

Returns

IEnumerable<T>

An enumerable collection of results that satisfy the query.

Applies to

.NET Framework 4.8.1 en andere versies
Product Versies
.NET Framework 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1

Evaluate<TResult>(MessageBuffer)

Runs an XPath query against the message.

public override System.Collections.Generic.IEnumerable<System.Collections.Generic.KeyValuePair<System.ServiceModel.Dispatcher.MessageQuery,TResult>> Evaluate<TResult> (System.ServiceModel.Channels.MessageBuffer buffer);

Type Parameters

TResult

The type of result to return.

Parameters

buffer
MessageBuffer

The message to query.

Returns

IEnumerable<T>

An enumerable collection of results that satisfy the query.

Applies to

.NET Framework 4.8.1 en andere versies
Product Versies
.NET Framework 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1