QueryCorrelationInitializer.MessageQuerySet 属性

定义

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

public:
 property System::ServiceModel::MessageQuerySet ^ MessageQuerySet { System::ServiceModel::MessageQuerySet ^ get(); void set(System::ServiceModel::MessageQuerySet ^ value); };
public System.ServiceModel.MessageQuerySet MessageQuerySet { get; set; }
member this.MessageQuerySet : System.ServiceModel.MessageQuerySet with get, set
Public Property MessageQuerySet As MessageQuerySet

属性值

MessageQuerySet

用于执行 MessageQuerySet 计算的 CorrelationKey

示例

下面的示例演示如何使用 MessageQuerySet 属性。

MessageQuerySet GetOrderQuerySet = new MessageQuerySet
{
    {
        "OrderID", 
        new XPathMessageQuery("//psns:Order/psns:OrderID",pathContext)
    }
};
new QueryCorrelationInitializer
{
    CorrelationHandle = orderHandle,
    MessageQuerySet = GetOrderQuerySet
}

适用于