QueryCorrelationInitializer 类

定义

在发送或接收消息时,基于 CorrelationHandle 的结果初始化关联的 MessageQuerySet

public ref class QueryCorrelationInitializer sealed : System::ServiceModel::Activities::CorrelationInitializer
[System.Windows.Markup.ContentProperty("MessageQuerySet")]
public sealed class QueryCorrelationInitializer : System.ServiceModel.Activities.CorrelationInitializer
[<System.Windows.Markup.ContentProperty("MessageQuerySet")>]
type QueryCorrelationInitializer = class
    inherit CorrelationInitializer
Public NotInheritable Class QueryCorrelationInitializer
Inherits CorrelationInitializer
继承
QueryCorrelationInitializer
属性

示例

下面的示例演示如何使用 QueryCorrelationInitializer 类设置 SendReply 活动的相关初始值设定项。

new SendReply
{
    DisplayName = "Send Adjusted Cost",
    Request = prescriptionRequest,
    // Initialize the orderHandle using the MessageQuerySet to correlate with the final GetAdjustedCost request
    CorrelationInitializers = 
    {
        new QueryCorrelationInitializer
        {
            CorrelationHandle = orderHandle,
            MessageQuerySet = GetOrderQuerySet
        }
    },
    Content = SendContent.Create(new InArgument<Order>((e) => order.Get(e)))
}

构造函数

QueryCorrelationInitializer()

初始化 QueryCorrelationInitializer 类的新实例。

属性

CorrelationHandle

获取或设置相关初始值设定项的 CorrelationHandle 参数。

(继承自 CorrelationInitializer)
MessageQuerySet

获取或设置用于执行 MessageQuerySet 计算的 CorrelationKey

方法

Equals(Object)

确定指定对象是否等于当前对象。

(继承自 Object)
GetHashCode()

作为默认哈希函数。

(继承自 Object)
GetType()

获取当前实例的 Type

(继承自 Object)
MemberwiseClone()

创建当前 Object 的浅表副本。

(继承自 Object)
ToString()

返回表示当前对象的字符串。

(继承自 Object)

适用于