MessageQuerySet Class
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.
System.Collections.Generic.Dictionary<String, MessageQuery>
System.ServiceModel.MessageQuerySet
Namespace: System.ServiceModel
Assembly: System.ServiceModel.Activities (in System.ServiceModel.Activities.dll)
The MessageQuerySet type exposes the following members.
| Name | Description | |
|---|---|---|
![]() | MessageQuerySet() | Initializes a new instance of the MessageQuerySet class. |
![]() | MessageQuerySet(MessageQueryTable<String>) | Initializes a new instance of the MessageQuerySet class with the specified MessageQueryTable<TItem>. |
| Name | Description | |
|---|---|---|
![]() | Comparer | Gets the IEqualityComparer<T> that is used to determine equality of keys for the dictionary. (Inherited from Dictionary<TKey, TValue>.) |
![]() | Count | Gets the number of key/value pairs contained in the Dictionary<TKey, TValue>. (Inherited from Dictionary<TKey, TValue>.) |
![]() | Item | Gets or sets the value associated with the specified key. (Inherited from Dictionary<TKey, TValue>.) |
![]() | Keys | Gets a collection containing the keys in the Dictionary<TKey, TValue>. (Inherited from Dictionary<TKey, TValue>.) |
![]() | Name | Gets or sets the name of the MessageQuerySet instance. |
![]() | Values | Gets a collection containing the values in the Dictionary<TKey, TValue>. (Inherited from Dictionary<TKey, TValue>.) |
| Name | Description | |
|---|---|---|
![]() | Add | Adds the specified key and value to the dictionary. (Inherited from Dictionary<TKey, TValue>.) |
![]() | Clear | Removes all keys and values from the Dictionary<TKey, TValue>. (Inherited from Dictionary<TKey, TValue>.) |
![]() | ContainsKey | Determines whether the Dictionary<TKey, TValue> contains the specified key. (Inherited from Dictionary<TKey, TValue>.) |
![]() | ContainsValue | Determines whether the Dictionary<TKey, TValue> contains a specific value. (Inherited from Dictionary<TKey, TValue>.) |
![]() | 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<TKey, TValue>. (Inherited from Dictionary<TKey, TValue>.) |
![]() | 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.ISerializable interface and returns the data needed to serialize the Dictionary<TKey, TValue> instance. (Inherited from Dictionary<TKey, TValue>.) |
![]() | 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.ISerializable interface and raises the deserialization event when the deserialization is complete. (Inherited from Dictionary<TKey, TValue>.) |
![]() | Remove | Removes the value with the specified key from the Dictionary<TKey, TValue>. (Inherited from Dictionary<TKey, TValue>.) |
![]() | ToString | Returns a string that represents the current object. (Inherited from Object.) |
![]() | TryGetValue | Gets the value associated with the specified key. (Inherited from Dictionary<TKey, TValue>.) |
| Name | Description | |
|---|---|---|
![]() ![]() | ICollection<KeyValuePair<TKey, TValue>>.Add | Adds the specified value to the ICollection<T> with the specified key. (Inherited from Dictionary<TKey, TValue>.) |
![]() ![]() | ICollection<KeyValuePair<TKey, TValue>>.Contains | Determines whether the ICollection<T> contains a specific key and value. (Inherited from Dictionary<TKey, TValue>.) |
![]() ![]() | ICollection<KeyValuePair<TKey, TValue>>.CopyTo | Copies the elements of the ICollection<T> to an array of type KeyValuePair<TKey, TValue>, starting at the specified array index. (Inherited from Dictionary<TKey, TValue>.) |
![]() ![]() | ICollection.CopyTo | Copies the elements of the ICollection<T> to an array, starting at the specified array index. (Inherited from Dictionary<TKey, TValue>.) |
![]() ![]() | ICollection<KeyValuePair<TKey, TValue>>.IsReadOnly | Gets a value indicating whether the dictionary is read-only. (Inherited from Dictionary<TKey, TValue>.) |
![]() ![]() | ICollection.IsSynchronized | Gets a value indicating whether access to the ICollection is synchronized (thread safe). (Inherited from Dictionary<TKey, TValue>.) |
![]() ![]() | ICollection<KeyValuePair<TKey, TValue>>.Remove | Removes a key and value from the dictionary. (Inherited from Dictionary<TKey, TValue>.) |
![]() ![]() | ICollection.SyncRoot | Gets an object that can be used to synchronize access to the ICollection. (Inherited from Dictionary<TKey, TValue>.) |
![]() ![]() | IDictionary.Add | Adds the specified key and value to the dictionary. (Inherited from Dictionary<TKey, TValue>.) |
![]() ![]() | IDictionary.Contains | Determines whether the IDictionary contains an element with the specified key. (Inherited from Dictionary<TKey, TValue>.) |
![]() ![]() | IDictionary.GetEnumerator | Returns an IDictionaryEnumerator for the IDictionary. (Inherited from Dictionary<TKey, TValue>.) |
![]() ![]() | IDictionary.IsFixedSize | Gets a value indicating whether the IDictionary has a fixed size. (Inherited from Dictionary<TKey, TValue>.) |
![]() ![]() | IDictionary.IsReadOnly | Gets a value indicating whether the IDictionary is read-only. (Inherited from Dictionary<TKey, TValue>.) |
![]() ![]() | IDictionary.Item | Gets or sets the value with the specified key. (Inherited from Dictionary<TKey, TValue>.) |
![]() ![]() | IDictionary<TKey, TValue>.Keys | Gets an ICollection<T> containing the keys of the IDictionary<TKey, TValue>. (Inherited from Dictionary<TKey, TValue>.) |
![]() ![]() | IDictionary.Keys | Gets an ICollection containing the keys of the IDictionary. (Inherited from Dictionary<TKey, TValue>.) |
![]() ![]() | IDictionary.Remove | Removes the element with the specified key from the IDictionary. (Inherited from Dictionary<TKey, TValue>.) |
![]() ![]() | IDictionary<TKey, TValue>.Values | Gets an ICollection<T> containing the values in the IDictionary<TKey, TValue>. (Inherited from Dictionary<TKey, TValue>.) |
![]() ![]() | IDictionary.Values | Gets an ICollection containing the values in the IDictionary. (Inherited from Dictionary<TKey, TValue>.) |
![]() ![]() | IEnumerable<KeyValuePair<TKey, TValue>>.GetEnumerator | Returns an enumerator that iterates through the collection. (Inherited from Dictionary<TKey, TValue>.) |
![]() ![]() | IEnumerable.GetEnumerator | Returns an enumerator that iterates through the collection. (Inherited from Dictionary<TKey, TValue>.) |
![]() ![]() | IReadOnlyDictionary<TKey, TValue>.Keys | Gets a collection containing the keys of the IReadOnlyDictionary<TKey, TValue>. (Inherited from Dictionary<TKey, TValue>.) |
![]() ![]() | IReadOnlyDictionary<TKey, TValue>.Values | Gets a collection containing the values of the IReadOnlyDictionary<TKey, TValue>. (Inherited from Dictionary<TKey, TValue>.) |
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) } } } } },
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.

