A set of MessageQuery objects and an associated string parameter. A correlation hash (InstanceKey) is computed from the results of the MessageQuery objects as well as the associated strings.
Inheritance Hierarchy
Namespace: System.ServiceModel System. . :: . Object
System.Collections.Generic. . :: . Dictionary< (Of < ( String, MessageQuery> ) > )
System.ServiceModel. . :: . MessageQuerySet
System.Collections.Generic
System.ServiceModel
Assembly: System.ServiceModel.Activities (in System.ServiceModel.Activities.dll)
The MessageQuerySet type exposes the following members.
Constructors
Top
| Name | Description | |
|---|---|---|
![]() | MessageQuerySet | Initializes a new instance of the MessageQuerySet class. |
![]() | MessageQuerySet(MessageQueryTable | Initializes a new instance of the MessageQuerySet class with the specified MessageQueryTable |
Properties
Top
| Name | Description | |
|---|---|---|
![]() | Comparer | Gets the IEqualityComparer |
![]() | Count | Gets the number of key/value pairs contained in the Dictionary |
![]() | Item | Gets or sets the value associated with the specified key. (Inherited from Dictionary |
![]() | Keys | Gets a collection containing the keys in the Dictionary |
![]() | Name | Gets or sets the name of the MessageQuerySet instance. |
![]() | Values | Gets a collection containing the values in the Dictionary |
Methods
Top
| Name | Description | |
|---|---|---|
![]() | Add | Adds the specified key and value to the dictionary. (Inherited from Dictionary |
![]() | Clear | Removes all keys and values from the Dictionary |
![]() | ContainsKey | Determines whether the Dictionary |
![]() | ContainsValue | Determines whether the Dictionary |
![]() | Equals(Object) | Determines whether the specified Object is equal to the current Object. (Inherited from Object.) |
![]() | Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) |
![]() | GetEnumerator | Returns an enumerator that iterates through the Dictionary |
![]() | GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) |
![]() | GetMessageQueryTable | Gets the message query table associated with the current MessageQuerySet instance. |
![]() | GetObjectData | Implements the System.Runtime.Serialization |
![]() | GetType | Gets the Type of the current instance. (Inherited from Object.) |
![]() | MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) |
![]() | OnDeserialization | Implements the System.Runtime.Serialization |
![]() | Remove | Removes the value with the specified key from the Dictionary |
![]() | ToString | Returns a string that represents the current object. (Inherited from Object.) |
![]() | TryGetValue | Gets the value associated with the specified key. (Inherited from Dictionary |
Explicit Interface Implementations
Top
| Name | Description | |
|---|---|---|
![]() ![]() | ICollection | Adds the specified value to the ICollection |
![]() ![]() | ICollection | Determines whether the ICollection |
![]() ![]() | ICollection | Copies the elements of the ICollection |
![]() ![]() | ICollection | Copies the elements of the ICollection |
![]() ![]() | ICollection | Gets a value indicating whether the dictionary is read-only. (Inherited from Dictionary |
![]() ![]() | ICollection | Gets a value indicating whether access to the ICollection is synchronized (thread safe). (Inherited from Dictionary |
![]() ![]() | ICollection | Removes a key and value from the dictionary. (Inherited from Dictionary |
![]() ![]() | ICollection | Gets an object that can be used to synchronize access to the ICollection. (Inherited from Dictionary |
![]() ![]() | IDictionary | Adds the specified key and value to the dictionary. (Inherited from Dictionary |
![]() ![]() | IDictionary | Determines whether the IDictionary contains an element with the specified key. (Inherited from Dictionary |
![]() ![]() | IDictionary | Returns an IDictionaryEnumerator for the IDictionary. (Inherited from Dictionary |
![]() ![]() | IDictionary | Gets a value indicating whether the IDictionary has a fixed size. (Inherited from Dictionary |
![]() ![]() | IDictionary | Gets a value indicating whether the IDictionary is read-only. (Inherited from Dictionary |
![]() ![]() | IDictionary | Gets or sets the value with the specified key. (Inherited from Dictionary |
![]() ![]() | IDictionary | Gets an ICollection |
![]() ![]() | IDictionary | Gets an ICollection containing the keys of the IDictionary. (Inherited from Dictionary |
![]() ![]() | IDictionary | Removes the element with the specified key from the IDictionary. (Inherited from Dictionary |
![]() ![]() | IDictionary | Gets an ICollection |
![]() ![]() | IDictionary | Gets an ICollection containing the values in the IDictionary. (Inherited from Dictionary |
![]() ![]() | IEnumerable | Returns an enumerator that iterates through the collection. (Inherited from Dictionary |
![]() ![]() | IEnumerable | Returns an enumerator that iterates through the collection. (Inherited from Dictionary |
Examples
The following example shows how to create a MessageQuerySet in a QueryCorrelationInitializer within a SendReply activity.
new SendReply
{
Request = submitPO,
Content = SendContent.Create(new InArgument<int>( (e) => po.Get(e).Id)), // creates a SendMessageContent
CorrelationInitializers =
{
new QueryCorrelationInitializer
{
// initializes a correlation based on the PurchaseOrder Id sent in the reply message and stores it in the handle
CorrelationHandle = poidHandle,
MessageQuerySet = new MessageQuerySet
{
// int is the name of the parameter being sent in the outgoing response
{ "PoId", new XPathMessageQuery("sm:body()/ser:int", Constants.XPathMessageContext) }
}
}
}
},
Platforms
Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements..gif)
.gif)
.gif)
.gif)
.gif)
.gif)