CimReadOnlyKeyedCollection<T> Class

 

Represents a read-only collection of objects. The objects can be enumerated (the order is undefined), or they can be accessed by their name.

Namespace:   Microsoft.Management.Infrastructure.Generic
Assembly:  Microsoft.Management.Infrastructure (in Microsoft.Management.Infrastructure.dll)

Inheritance Hierarchy

System.Object
  Microsoft.Management.Infrastructure.Generic.CimReadOnlyKeyedCollection<T>
    Microsoft.Management.Infrastructure.Generic.CimKeyedCollection<T>

Syntax

public abstract class CimReadOnlyKeyedCollection<T> : IEnumerable<T>, 
    IEnumerable
generic<typename T>
public ref class CimReadOnlyKeyedCollection abstract : IEnumerable<T>, 
    IEnumerable
[<AbstractClass>]
type CimReadOnlyKeyedCollection<'T> = 
    class
        interface IEnumerable<'T>
        interface IEnumerable
    end
Public MustInherit Class CimReadOnlyKeyedCollection(Of T)
    Implements IEnumerable(Of T), IEnumerable

Type Parameters

  • T
    Type of items in the collection.

Properties

Name Description
System_CAPS_pubproperty Count

Gets the number of items in the collection.

System_CAPS_pubproperty Item[String]

Gets an item with a given key string from the collection.

Methods

Name Description
System_CAPS_pubmethod Equals(Object)

(Inherited from Object.)

System_CAPS_protmethod Finalize()

(Inherited from Object.)

System_CAPS_pubmethod GetEnumerator()

Retrieves an enumerator that returns items from the collection.

System_CAPS_pubmethod GetHashCode()

(Inherited from Object.)

System_CAPS_pubmethod GetType()

(Inherited from Object.)

System_CAPS_protmethod MemberwiseClone()

(Inherited from Object.)

System_CAPS_pubmethod ToString()

(Inherited from Object.)

Explicit Interface Implementations

Name Description
System_CAPS_pubinterfaceSystem_CAPS_privmethod IEnumerable.GetEnumerator()

Retrieves an enumerator that returns items from the collection.

Remarks

The Item property is the default member of the collection.

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.Management.Infrastructure.Generic Namespace

Return to top