Edit

Bagikan melalui


QueryCorrelationInitializer.MessageQuerySet Property

Definition

Gets or sets the MessageQuerySet that is used to perform the CorrelationKey calculation.

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

Property Value

The MessageQuerySet that is used to perform the CorrelationKey calculation.

Examples

The following example shows how to use the MessageQuerySet property.

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

Applies to