Bearbeiten

ManagementNamedValueCollection Class

Definition

Represents a collection of named values suitable for use as context information to WMI operations. The names are case-insensitive.

public ref class ManagementNamedValueCollection : System::Collections::Specialized::NameObjectCollectionBase
public class ManagementNamedValueCollection : System.Collections.Specialized.NameObjectCollectionBase
type ManagementNamedValueCollection = class
    inherit NameObjectCollectionBase
Public Class ManagementNamedValueCollection
Inherits NameObjectCollectionBase
Inheritance
ManagementNamedValueCollection

Constructors

Name Description
ManagementNamedValueCollection()

Initializes a new instance of the ManagementNamedValueCollection class, which is empty. This is the parameterless constructor.

ManagementNamedValueCollection(SerializationInfo, StreamingContext)
Obsolete.

Initializes a new instance of the ManagementNamedValueCollection class that is serializable and uses the specified SerializationInfo and StreamingContext.

Properties

Name Description
Item[String]

Gets the value associated with the specified name from this collection. In C#, this property is the indexer for the ManagementNamedValueCollection class.

Methods

Name Description
Add(String, Object)

Adds a single-named value to the collection.

Clone()

Creates a clone of the collection. Individual values are cloned. If a value does not support cloning, then a NotSupportedException is thrown.

Remove(String)

Removes a single-named value from the collection. If the collection does not contain an element with the specified name, the collection remains unchanged and no exception is thrown.

RemoveAll()

Removes all entries from the collection.

Applies to