This documentation is archived and is not being maintained.

ManagementObjectCollection Methods

The methods of the ManagementObjectCollection class are listed here. For a complete list of ManagementObjectCollection class members, see the ManagementObjectCollection Members topic.

Public Methods

public methodCopyTo Overloaded. Copies the collection to an array.
public methodDispose Releases resources associated with this object. After this method has been called, an attempt to use this object will result in an ObjectDisposedException being thrown.
public methodEquals (inherited from Object) Overloaded. Determines whether two Object instances are equal.
public methodGetEnumerator Returns the enumerator for the collection.
public methodGetHashCode (inherited from Object) Serves as a hash function for a particular type, suitable for use in hashing algorithms and data structures like a hash table.
public methodGetType (inherited from Object) Gets the Type of the current instance.
public methodToString (inherited from Object) Returns a String that represents the current Object.

Protected Methods

protected methodFinalize Overridden. Disposes of resources the object is holding. This is the destructor for the object.

In C# and C++, finalizers are expressed using destructor syntax.

protected methodMemberwiseClone (inherited from Object) Creates a shallow copy of the current Object.

See Also

ManagementObjectCollection Class | System.Management Namespace