MessageQueryTable<TItem>.Evaluate 方法
定义
对消息运行查询并返回一个结果。Runs a query against the message and returns a result.
重载
| Evaluate<TResult>(MessageBuffer) |
对消息运行查询并返回相应结果。Runs a query against the message and returns the result. |
| Evaluate<TResult>(Message) |
对消息运行查询并返回一个结果集合。Runs a query against the message and returns a collection of results. 无法查询正文。The body cannot be queried. |
Evaluate<TResult>(MessageBuffer)
对消息运行查询并返回相应结果。Runs a query against the message and returns the result.
public:
generic <typename TResult>
System::Collections::Generic::IEnumerable<System::Collections::Generic::KeyValuePair<System::ServiceModel::Dispatcher::MessageQuery ^, TResult>> ^ Evaluate(System::ServiceModel::Channels::MessageBuffer ^ buffer);
public System.Collections.Generic.IEnumerable<System.Collections.Generic.KeyValuePair<System.ServiceModel.Dispatcher.MessageQuery,TResult>> Evaluate<TResult> (System.ServiceModel.Channels.MessageBuffer buffer);
member this.Evaluate : System.ServiceModel.Channels.MessageBuffer -> seq<System.Collections.Generic.KeyValuePair<System.ServiceModel.Dispatcher.MessageQuery, 'Result>>
Public Function Evaluate(Of TResult) (buffer As MessageBuffer) As IEnumerable(Of KeyValuePair(Of MessageQuery, TResult))
类型参数
- TResult
要返回的结果的类型。The type of the result to return.
参数
- buffer
- MessageBuffer
要查询的消息。The message to query.
返回
- IEnumerable<KeyValuePair<MessageQuery,TResult>>
查询结果。The result of the query. 可以枚举多个结果。Multiple results can be enumerated through.
适用于
Evaluate<TResult>(Message)
对消息运行查询并返回一个结果集合。Runs a query against the message and returns a collection of results. 无法查询正文。The body cannot be queried.
public:
generic <typename TResult>
System::Collections::Generic::IEnumerable<System::Collections::Generic::KeyValuePair<System::ServiceModel::Dispatcher::MessageQuery ^, TResult>> ^ Evaluate(System::ServiceModel::Channels::Message ^ message);
public System.Collections.Generic.IEnumerable<System.Collections.Generic.KeyValuePair<System.ServiceModel.Dispatcher.MessageQuery,TResult>> Evaluate<TResult> (System.ServiceModel.Channels.Message message);
member this.Evaluate : System.ServiceModel.Channels.Message -> seq<System.Collections.Generic.KeyValuePair<System.ServiceModel.Dispatcher.MessageQuery, 'Result>>
Public Function Evaluate(Of TResult) (message As Message) As IEnumerable(Of KeyValuePair(Of MessageQuery, TResult))
类型参数
- TResult
要返回的结果的类型。The type of the result to return.
参数
- message
- Message
要查询的消息。The message to query.
返回
- IEnumerable<KeyValuePair<MessageQuery,TResult>>
结果的可枚举集合。The enumerable collection of results.