共用方式為


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 計算的 CorrelationKey

範例

下列範例將示範如何使用 MessageQuerySet 屬性。

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

適用於