Export (0) Print
Expand All

CorrelationQuery Class

Represents a Where clause and a Select clause that identify the unique characteristics of a message so that it can be routed to the correct instance.

System.Object
  System.ServiceModel.CorrelationQuery

Namespace:  System.ServiceModel
Assembly:  System.ServiceModel.Activities (in System.ServiceModel.Activities.dll)

public class CorrelationQuery

The CorrelationQuery type exposes the following members.

  NameDescription
Public methodCorrelationQueryInitializes a new instance of the CorrelationQuery class.
Top

  NameDescription
Public propertySelectGets or sets the MessageQuerySet that contains the elements in the message that compose the instance key that uniquely identifies the message.
Public propertySelectAdditionalGets a collection of clauses, each of which defines the set of elements in the message that make up an associated key.
Public propertyWhereGets or sets the MessageFilter that defines the set of messages for which this query applies.
Top

  NameDescription
Public methodEqualsDetermines whether the current CorrelationQuery is equal to the specified object. (Overrides Object.Equals(Object).)
Protected methodFinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public methodGetHashCodeReturns the hash code for the current CorrelationQuery. (Overrides Object.GetHashCode().)
Public methodGetTypeGets the Type of the current instance. (Inherited from Object.)
Protected methodMemberwiseCloneCreates a shallow copy of the current Object. (Inherited from Object.)
Public methodToStringReturns a string that represents the current object. (Inherited from Object.)
Top

A CorrelationQuery is a set of queries that are run on an incoming or outgoing message to generate a set of instance keys. An InstanceKey represents an association between the data selected from the query and a particular service instance.

The Where clause allows the user to filter the set of messages that this CorrelationQuery runs on. The Select clause represents the query set used to uniquely identify the service instance for which an incoming message should be dispatched. The SelectAdditional clauses are a set of query sets that represent new instance keys that must be created to associate that data with the service instance.

.NET Framework

Supported in: 4.5, 4

.NET Framework Client Profile

Supported in: 4

Windows 8.1, Windows Server 2012 R2, Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Show:
© 2014 Microsoft