CepObjectReadOnlyDictionary<T> Class

 

Represents a generic read-only collection for CEP metadata objects.

Namespace:   Microsoft.ComplexEventProcessing
Assembly:  Microsoft.ComplexEventProcessing (in Microsoft.ComplexEventProcessing.dll)

Inheritance Hierarchy

System.Object
  Microsoft.ComplexEventProcessing.CepObjectReadOnlyDictionary<T>

Syntax

public sealed class CepObjectReadOnlyDictionary<T> : IDictionary<string, T>, 
    ICollection<KeyValuePair<string, T>>, IEnumerable<KeyValuePair<string, T>>, 
    IEnumerable
where T : CepObject
generic<typename T>
where T : CepObject
public ref class CepObjectReadOnlyDictionary sealed : IDictionary<String^, T>, 
    ICollection<KeyValuePair<String^, T>>, IEnumerable<KeyValuePair<String^, T>>, 
    IEnumerable
[<Sealed>]
type CepObjectReadOnlyDictionary<'T when 'T : CepObject> = 
    class
        interface IDictionary<string, 'T>
        interface ICollection<KeyValuePair<string, 'T>>
        interface IEnumerable<KeyValuePair<string, 'T>>
        interface IEnumerable
    end
Public NotInheritable Class CepObjectReadOnlyDictionary(Of T As CepObject)
    Implements IDictionary(Of String, T), ICollection(Of KeyValuePair(Of String, T)),
    IEnumerable(Of KeyValuePair(Of String, T)), IEnumerable

Type Parameters

  • T
    The type of the element.

Properties

Name Description
System_CAPS_pubproperty Count

Gets the number of elements contained in the collection.

System_CAPS_pubproperty IsReadOnly

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

System_CAPS_pubproperty Item[String]

Gets metadata objects by name.

System_CAPS_pubproperty Keys

Gets the keys of the collection.

System_CAPS_pubproperty Values

Gets the values of the collection.

Methods

Name Description
System_CAPS_pubmethod Contains(KeyValuePair<String, T>)

Indicates whether the collection contains the given item.

System_CAPS_pubmethod ContainsKey(String)

Indicates whether the collection contains the given key.

System_CAPS_pubmethod CopyTo(KeyValuePair<String, T>[], Int32)

Copies the elements of the collection to a given array, starting at a particular array index.

System_CAPS_pubmethod Equals(Object)

(Inherited from Object.)

System_CAPS_pubmethod GetEnumerator()

Returns an enumerator that iterates through the collection.

System_CAPS_pubmethod GetHashCode()

(Inherited from Object.)

System_CAPS_pubmethod GetType()

(Inherited from Object.)

System_CAPS_pubmethod ToString()

(Inherited from Object.)

System_CAPS_pubmethod TryGetValue(String, T)

Tries to get the value given the key.

Explicit Interface Implementations

Name Description
System_CAPS_pubinterfaceSystem_CAPS_privmethod ICollection<KeyValuePair<String, T>>.Add(KeyValuePair<String, T>)

System_CAPS_pubinterfaceSystem_CAPS_privmethod ICollection<KeyValuePair<String, T>>.Clear()

System_CAPS_pubinterfaceSystem_CAPS_privmethod ICollection<KeyValuePair<String, T>>.Remove(KeyValuePair<String, T>)

System_CAPS_pubinterfaceSystem_CAPS_privmethod IDictionary<String, T>.Add(String, T)

System_CAPS_pubinterfaceSystem_CAPS_privmethod IDictionary<String, T>.Remove(String)

System_CAPS_pubinterfaceSystem_CAPS_privmethod IEnumerable.GetEnumerator()

Returns an enumerator that iterates through a collection.

System_CAPS_pubinterfaceSystem_CAPS_privproperty IDictionary<String, T>.Item[String]

Extension Methods

Name Description
System_CAPS_pubmethod ToEdgeStream<KeyValuePair<String, T>, TPayload>(Application, Expression<Func<KeyValuePair<String, T>, EdgeEvent<TPayload>>>, AdvanceTimeSettings, String)

Converts an enumerable input stream to a stream of edge events, and provides the temporal characteristics of the input.(Defined by CepStream.)

System_CAPS_pubmethod ToIntervalStream<KeyValuePair<String, T>, TPayload>(Application, Expression<Func<KeyValuePair<String, T>, IntervalEvent<TPayload>>>, AdvanceTimeSettings, String)

Converts an enumerable input stream to a stream of interval events, and provides the temporal characteristics of the input.(Defined by CepStream.)

System_CAPS_pubmethod ToPointStream<KeyValuePair<String, T>, TPayload>(Application, Expression<Func<KeyValuePair<String, T>, PointEvent<TPayload>>>, AdvanceTimeSettings, String)

Converts a CepStream of point events to an event sink.(Defined by CepStream.)

Remarks

This collection populates its underlying list on demand (such as on call to Count or GetEnumerator) from the collection source. Once the underlying list is populated, it is cached for the lifetime of this object. The indexer retrieves objects directly from the collection source or from the underlying list if it has been populated.

Thread Safety

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

See Also

Microsoft.ComplexEventProcessing Namespace

Return to top