次の方法で共有


CimKeyedCollection<T> Class

 

Represents a 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>
      Microsoft.Management.Infrastructure.CimMethodParametersCollection

Syntax

public abstract class CimKeyedCollection<T> : CimReadOnlyKeyedCollection<T>
generic<typename T>
public ref class CimKeyedCollection abstract : CimReadOnlyKeyedCollection<T>
[<AbstractClass>]
type CimKeyedCollection<'T> = 
    class
        inherit CimReadOnlyKeyedCollection<'T>
    end
Public MustInherit Class CimKeyedCollection(Of T)
    Inherits CimReadOnlyKeyedCollection(Of T)

Type Parameters

  • T
    Type of items in the collection.

Properties

Name Description
System_CAPS_pubproperty Count

Gets the number of items in the collection.(Inherited from CimReadOnlyKeyedCollection<T>.)

System_CAPS_pubproperty Item[String]

Gets an item with a given key string from the collection.(Inherited from CimReadOnlyKeyedCollection<T>.)

Methods

Name Description
System_CAPS_pubmethod Add(T)

Adds an item to the collection.

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.(Inherited from CimReadOnlyKeyedCollection<T>.)

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.(Inherited from CimReadOnlyKeyedCollection<T>.)

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