ManagementNamedValueCollection Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
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. |