MessageQuerySet MessageQuerySet MessageQuerySet MessageQuerySet Class

Definition

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.

public ref class MessageQuerySet : System::Collections::Generic::Dictionary<System::String ^, System::ServiceModel::Dispatcher::MessageQuery ^>
public class MessageQuerySet : System.Collections.Generic.Dictionary<string,System.ServiceModel.Dispatcher.MessageQuery>
type MessageQuerySet = class
    inherit Dictionary<string, MessageQuery>
Public Class MessageQuerySet
Inherits Dictionary(Of String, MessageQuery)
Inheritance

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) }
            }
        }
    }                        
}, 

Constructors

MessageQuerySet() MessageQuerySet() MessageQuerySet() MessageQuerySet()

Initializes a new instance of the MessageQuerySet class.

MessageQuerySet(MessageQueryTable<String>) MessageQuerySet(MessageQueryTable<String>) MessageQuerySet(MessageQueryTable<String>) MessageQuerySet(MessageQueryTable<String>)

Initializes a new instance of the MessageQuerySet class with the specified MessageQueryTable<TItem>.

Properties

Comparer Comparer Comparer Comparer

Gets the IEqualityComparer<T> that is used to determine equality of keys for the dictionary.

(Inherited from Dictionary<TKey,TValue>)
Count Count Count Count

Gets the number of key/value pairs contained in the Dictionary<TKey,TValue>.

(Inherited from Dictionary<TKey,TValue>)
ICollection.IsSynchronized ICollection.IsSynchronized ICollection.IsSynchronized ICollection.IsSynchronized

Gets a value that indicates whether access to the ICollection is synchronized (thread safe).

(Inherited from Dictionary<TKey,TValue>)
ICollection.SyncRoot ICollection.SyncRoot ICollection.SyncRoot ICollection.SyncRoot

Gets an object that can be used to synchronize access to the ICollection.

(Inherited from Dictionary<TKey,TValue>)
ICollection<KeyValuePair<TKey,TValue>>.IsReadOnly ICollection<KeyValuePair<TKey,TValue>>.IsReadOnly ICollection<KeyValuePair<TKey,TValue>>.IsReadOnly ICollection<KeyValuePair<TKey,TValue>>.IsReadOnly

Gets a value that indicates whether the dictionary is read-only.

(Inherited from Dictionary<TKey,TValue>)
IDictionary.IsFixedSize IDictionary.IsFixedSize IDictionary.IsFixedSize IDictionary.IsFixedSize

Gets a value that indicates whether the IDictionary has a fixed size.

(Inherited from Dictionary<TKey,TValue>)
IDictionary.IsReadOnly IDictionary.IsReadOnly IDictionary.IsReadOnly IDictionary.IsReadOnly

Gets a value that indicates whether the IDictionary is read-only.

(Inherited from Dictionary<TKey,TValue>)
IDictionary.Item[Object] IDictionary.Item[Object] IDictionary.Item[Object] IDictionary.Item[Object]

Gets or sets the value with the specified key.

(Inherited from Dictionary<TKey,TValue>)
IDictionary.Keys IDictionary.Keys IDictionary.Keys IDictionary.Keys

Gets an ICollection containing the keys of the IDictionary.

(Inherited from Dictionary<TKey,TValue>)
IDictionary.Values IDictionary.Values IDictionary.Values IDictionary.Values

Gets an ICollection containing the values in the IDictionary.

(Inherited from Dictionary<TKey,TValue>)
IDictionary<TKey,TValue>.Keys IDictionary<TKey,TValue>.Keys IDictionary<TKey,TValue>.Keys IDictionary<TKey,TValue>.Keys

Gets an ICollection<T> containing the keys of the IDictionary<TKey,TValue>.

(Inherited from Dictionary<TKey,TValue>)
IDictionary<TKey,TValue>.Values IDictionary<TKey,TValue>.Values IDictionary<TKey,TValue>.Values IDictionary<TKey,TValue>.Values

Gets an ICollection<T> containing the values in the IDictionary<TKey,TValue>.

(Inherited from Dictionary<TKey,TValue>)
IReadOnlyDictionary<TKey,TValue>.Keys IReadOnlyDictionary<TKey,TValue>.Keys IReadOnlyDictionary<TKey,TValue>.Keys IReadOnlyDictionary<TKey,TValue>.Keys

Gets a collection containing the keys of the IReadOnlyDictionary<TKey,TValue>.

(Inherited from Dictionary<TKey,TValue>)
IReadOnlyDictionary<TKey,TValue>.Values IReadOnlyDictionary<TKey,TValue>.Values IReadOnlyDictionary<TKey,TValue>.Values IReadOnlyDictionary<TKey,TValue>.Values

Gets a collection containing the values of the IReadOnlyDictionary<TKey,TValue>.

(Inherited from Dictionary<TKey,TValue>)
Item[TKey] Item[TKey] Item[TKey] Item[TKey]

Gets or sets the value associated with the specified key.

(Inherited from Dictionary<TKey,TValue>)
Keys Keys Keys Keys

Gets a collection containing the keys in the Dictionary<TKey,TValue>.

(Inherited from Dictionary<TKey,TValue>)
Name Name Name Name

Gets or sets the name of the MessageQuerySet instance.

Values Values Values Values

Gets a collection containing the values in the Dictionary<TKey,TValue>.

(Inherited from Dictionary<TKey,TValue>)

Methods

Add(TKey, TValue) Add(TKey, TValue) Add(TKey, TValue) Add(TKey, TValue)

Adds the specified key and value to the dictionary.

(Inherited from Dictionary<TKey,TValue>)
Clear() Clear() Clear() Clear()

Removes all keys and values from the Dictionary<TKey,TValue>.

(Inherited from Dictionary<TKey,TValue>)
ContainsKey(TKey) ContainsKey(TKey) ContainsKey(TKey) ContainsKey(TKey)

Determines whether the Dictionary<TKey,TValue> contains the specified key.

(Inherited from Dictionary<TKey,TValue>)
ContainsValue(TValue) ContainsValue(TValue) ContainsValue(TValue) ContainsValue(TValue)

Determines whether the Dictionary<TKey,TValue> contains a specific value.

(Inherited from Dictionary<TKey,TValue>)
EnsureCapacity(Int32) EnsureCapacity(Int32) EnsureCapacity(Int32) EnsureCapacity(Int32) Inherited from Dictionary<TKey,TValue>
Equals(Object) Equals(Object) Equals(Object) Equals(Object)

Determines whether the specified object is equal to the current object.

(Inherited from Object)
GetEnumerator() GetEnumerator() GetEnumerator() GetEnumerator()

Returns an enumerator that iterates through the Dictionary<TKey,TValue>.

(Inherited from Dictionary<TKey,TValue>)
GetHashCode() GetHashCode() GetHashCode() GetHashCode()

Serves as the default hash function.

(Inherited from Object)
GetMessageQueryTable() GetMessageQueryTable() GetMessageQueryTable() GetMessageQueryTable()

Gets the message query table associated with the current MessageQuerySet instance.

GetObjectData(SerializationInfo, StreamingContext) GetObjectData(SerializationInfo, StreamingContext) GetObjectData(SerializationInfo, StreamingContext) GetObjectData(SerializationInfo, StreamingContext)

Implements the ISerializable interface and returns the data needed to serialize the Dictionary<TKey,TValue> instance.

(Inherited from Dictionary<TKey,TValue>)
GetType() GetType() GetType() GetType()

Gets the Type of the current instance.

(Inherited from Object)
MemberwiseClone() MemberwiseClone() MemberwiseClone() MemberwiseClone()

Creates a shallow copy of the current Object.

(Inherited from Object)
OnDeserialization(Object) OnDeserialization(Object) OnDeserialization(Object) OnDeserialization(Object)

Implements the ISerializable interface and raises the deserialization event when the deserialization is complete.

(Inherited from Dictionary<TKey,TValue>)
Remove(TKey) Remove(TKey) Remove(TKey) Remove(TKey)

Removes the value with the specified key from the Dictionary<TKey,TValue>.

(Inherited from Dictionary<TKey,TValue>)
Remove(TKey, TValue) Remove(TKey, TValue) Remove(TKey, TValue) Remove(TKey, TValue) Inherited from Dictionary<TKey,TValue>
ToString() ToString() ToString() ToString()

Returns a string that represents the current object.

(Inherited from Object)
TrimExcess() TrimExcess() TrimExcess() TrimExcess() Inherited from Dictionary<TKey,TValue>
TrimExcess(Int32) TrimExcess(Int32) TrimExcess(Int32) TrimExcess(Int32) Inherited from Dictionary<TKey,TValue>
TryAdd(TKey, TValue) TryAdd(TKey, TValue) TryAdd(TKey, TValue) TryAdd(TKey, TValue)

Attempts to add the specified key and value to the dictionary.

(Inherited from Dictionary<TKey,TValue>)
TryGetValue(TKey, TValue) TryGetValue(TKey, TValue) TryGetValue(TKey, TValue) TryGetValue(TKey, TValue)

Gets the value associated with the specified key.

(Inherited from Dictionary<TKey,TValue>)

Explicit Interface Implementations

ICollection.CopyTo(Array, Int32) ICollection.CopyTo(Array, Int32) ICollection.CopyTo(Array, Int32) ICollection.CopyTo(Array, Int32)

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>>.Add(KeyValuePair<TKey,TValue>) ICollection<KeyValuePair<TKey,TValue>>.Add(KeyValuePair<TKey,TValue>) ICollection<KeyValuePair<TKey,TValue>>.Add(KeyValuePair<TKey,TValue>) ICollection<KeyValuePair<TKey,TValue>>.Add(KeyValuePair<TKey,TValue>)

Adds the specified value to the ICollection<T> with the specified key.

(Inherited from Dictionary<TKey,TValue>)
ICollection<KeyValuePair<TKey,TValue>>.Contains(KeyValuePair<TKey,TValue>) ICollection<KeyValuePair<TKey,TValue>>.Contains(KeyValuePair<TKey,TValue>) ICollection<KeyValuePair<TKey,TValue>>.Contains(KeyValuePair<TKey,TValue>) ICollection<KeyValuePair<TKey,TValue>>.Contains(KeyValuePair<TKey,TValue>)

Determines whether the ICollection<T> contains a specific key and value.

(Inherited from Dictionary<TKey,TValue>)
ICollection<KeyValuePair<TKey,TValue>>.CopyTo(KeyValuePair<TKey,TValue>[], Int32) ICollection<KeyValuePair<TKey,TValue>>.CopyTo(KeyValuePair<TKey,TValue>[], Int32) ICollection<KeyValuePair<TKey,TValue>>.CopyTo(KeyValuePair<TKey,TValue>[], Int32) ICollection<KeyValuePair<TKey,TValue>>.CopyTo(KeyValuePair<TKey,TValue>[], Int32)

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<KeyValuePair<TKey,TValue>>.Remove(KeyValuePair<TKey,TValue>) ICollection<KeyValuePair<TKey,TValue>>.Remove(KeyValuePair<TKey,TValue>) ICollection<KeyValuePair<TKey,TValue>>.Remove(KeyValuePair<TKey,TValue>) ICollection<KeyValuePair<TKey,TValue>>.Remove(KeyValuePair<TKey,TValue>)

Removes a key and value from the dictionary.

(Inherited from Dictionary<TKey,TValue>)
IDictionary.Add(Object, Object) IDictionary.Add(Object, Object) IDictionary.Add(Object, Object) IDictionary.Add(Object, Object)

Adds the specified key and value to the dictionary.

(Inherited from Dictionary<TKey,TValue>)
IDictionary.Contains(Object) IDictionary.Contains(Object) IDictionary.Contains(Object) IDictionary.Contains(Object)

Determines whether the IDictionary contains an element with the specified key.

(Inherited from Dictionary<TKey,TValue>)
IDictionary.GetEnumerator() IDictionary.GetEnumerator() IDictionary.GetEnumerator() IDictionary.GetEnumerator()

Returns an IDictionaryEnumerator for the IDictionary.

(Inherited from Dictionary<TKey,TValue>)
IDictionary.Remove(Object) IDictionary.Remove(Object) IDictionary.Remove(Object) IDictionary.Remove(Object)

Removes the element with the specified key from the IDictionary.

(Inherited from Dictionary<TKey,TValue>)
IEnumerable.GetEnumerator() IEnumerable.GetEnumerator() IEnumerable.GetEnumerator() IEnumerable.GetEnumerator()

Returns an enumerator that iterates through the collection.

(Inherited from Dictionary<TKey,TValue>)
IEnumerable<KeyValuePair<TKey,TValue>>.GetEnumerator() IEnumerable<KeyValuePair<TKey,TValue>>.GetEnumerator() IEnumerable<KeyValuePair<TKey,TValue>>.GetEnumerator() IEnumerable<KeyValuePair<TKey,TValue>>.GetEnumerator()

Returns an enumerator that iterates through the collection.

(Inherited from Dictionary<TKey,TValue>)

Extension Methods

CopyToDataTable<T>(IEnumerable<T>) CopyToDataTable<T>(IEnumerable<T>) CopyToDataTable<T>(IEnumerable<T>) CopyToDataTable<T>(IEnumerable<T>)

Returns a DataTable that contains copies of the DataRow objects, given an input IEnumerable<T> object where the generic parameter T is DataRow.

CopyToDataTable<T>(IEnumerable<T>, DataTable, LoadOption) CopyToDataTable<T>(IEnumerable<T>, DataTable, LoadOption) CopyToDataTable<T>(IEnumerable<T>, DataTable, LoadOption) CopyToDataTable<T>(IEnumerable<T>, DataTable, LoadOption)

Copies DataRow objects to the specified DataTable, given an input IEnumerable<T> object where the generic parameter T is DataRow.

CopyToDataTable<T>(IEnumerable<T>, DataTable, LoadOption, FillErrorEventHandler) CopyToDataTable<T>(IEnumerable<T>, DataTable, LoadOption, FillErrorEventHandler) CopyToDataTable<T>(IEnumerable<T>, DataTable, LoadOption, FillErrorEventHandler) CopyToDataTable<T>(IEnumerable<T>, DataTable, LoadOption, FillErrorEventHandler)

Copies DataRow objects to the specified DataTable, given an input IEnumerable<T> object where the generic parameter T is DataRow.

Cast<TResult>(IEnumerable) Cast<TResult>(IEnumerable) Cast<TResult>(IEnumerable) Cast<TResult>(IEnumerable)

Casts the elements of an IEnumerable to the specified type.

OfType<TResult>(IEnumerable) OfType<TResult>(IEnumerable) OfType<TResult>(IEnumerable) OfType<TResult>(IEnumerable)

Filters the elements of an IEnumerable based on a specified type.

AsParallel(IEnumerable) AsParallel(IEnumerable) AsParallel(IEnumerable) AsParallel(IEnumerable)

Enables parallelization of a query.

AsQueryable(IEnumerable) AsQueryable(IEnumerable) AsQueryable(IEnumerable) AsQueryable(IEnumerable)

Converts an IEnumerable to an IQueryable.

Ancestors<T>(IEnumerable<T>) Ancestors<T>(IEnumerable<T>) Ancestors<T>(IEnumerable<T>) Ancestors<T>(IEnumerable<T>)

Returns a collection of elements that contains the ancestors of every node in the source collection.

Ancestors<T>(IEnumerable<T>, XName) Ancestors<T>(IEnumerable<T>, XName) Ancestors<T>(IEnumerable<T>, XName) Ancestors<T>(IEnumerable<T>, XName)

Returns a filtered collection of elements that contains the ancestors of every node in the source collection. Only elements that have a matching XName are included in the collection.

DescendantNodes<T>(IEnumerable<T>) DescendantNodes<T>(IEnumerable<T>) DescendantNodes<T>(IEnumerable<T>) DescendantNodes<T>(IEnumerable<T>)

Returns a collection of the descendant nodes of every document and element in the source collection.

Descendants<T>(IEnumerable<T>) Descendants<T>(IEnumerable<T>) Descendants<T>(IEnumerable<T>) Descendants<T>(IEnumerable<T>)

Returns a collection of elements that contains the descendant elements of every element and document in the source collection.

Descendants<T>(IEnumerable<T>, XName) Descendants<T>(IEnumerable<T>, XName) Descendants<T>(IEnumerable<T>, XName) Descendants<T>(IEnumerable<T>, XName)

Returns a filtered collection of elements that contains the descendant elements of every element and document in the source collection. Only elements that have a matching XName are included in the collection.

Elements<T>(IEnumerable<T>) Elements<T>(IEnumerable<T>) Elements<T>(IEnumerable<T>) Elements<T>(IEnumerable<T>)

Returns a collection of the child elements of every element and document in the source collection.

Elements<T>(IEnumerable<T>, XName) Elements<T>(IEnumerable<T>, XName) Elements<T>(IEnumerable<T>, XName) Elements<T>(IEnumerable<T>, XName)

Returns a filtered collection of the child elements of every element and document in the source collection. Only elements that have a matching XName are included in the collection.

InDocumentOrder<T>(IEnumerable<T>) InDocumentOrder<T>(IEnumerable<T>) InDocumentOrder<T>(IEnumerable<T>) InDocumentOrder<T>(IEnumerable<T>)

Returns a collection of nodes that contains all nodes in the source collection, sorted in document order.

Nodes<T>(IEnumerable<T>) Nodes<T>(IEnumerable<T>) Nodes<T>(IEnumerable<T>) Nodes<T>(IEnumerable<T>)

Returns a collection of the child nodes of every document and element in the source collection.

Remove<T>(IEnumerable<T>) Remove<T>(IEnumerable<T>) Remove<T>(IEnumerable<T>) Remove<T>(IEnumerable<T>)

Removes every node in the source collection from its parent node.

Applies to