//---------------------------------------------------------------------------- // // Copyright (c) Intel Corporation, 2003 - 2012 All Rights Reserved. // // File: CIM_Collection.cs // // Contents: Collection is an abstract class that provides a common superclass for data elements that represent collections of ManagedElements and its subclasses. // This file was automatically generated from CIM_Collection.mof // //---------------------------------------------------------------------------- using System; using System.Collections.Generic; using System.Collections.ObjectModel; using System.Text; using System.Globalization; using System.Xml.Serialization; using System.IO; using Intel.Manageability.WSManagement; using Intel.Manageability.Cim.Untyped; namespace Intel.Manageability.Cim.Typed { /// ///Collection is an abstract class that provides a common superclass for data elements that represent collections of ManagedElements and its subclasses. /// [System.SerializableAttribute()] [System.Xml.Serialization.XmlTypeAttribute(Namespace="http://schemas.dmtf.org/wbem/wscim/1/cim-schema/2/CIM_Collection")] [System.Xml.Serialization.XmlRootAttribute("CIM_Collection", Namespace="http://schemas.dmtf.org/wbem/wscim/1/cim-schema/2/CIM_Collection", IsNullable=false)] public class CIM_Collection : CIM_ManagedElement { /// /// Default constructor. /// public CIM_Collection() :base() { } /// /// Constructor that recieves an xml string for deserialization. /// /// xml string to deserialize public CIM_Collection(string xml): base((IWSManClient)null) { this.Deserialize(xml); } /// /// Constructor which recieves a Ws-Management client object. /// /// Ws-Management client public CIM_Collection(IWSManClient client): base(client) { } /// /// Enumerate instances of CIM_Collection class at an endpoint. /// /// WS-Management client /// Keys for selecting the instances /// Collection of CIM_Collection objects public static new Collection Enumerate(IWSManClient client, CimBase.CimKeys cimKeys) { List ret = CimBase.Enumerate(client, cimKeys); return new Collection(ret); } /// /// Enumerate instances of CIM_Collection class at an endpoint. /// /// WS-Management client /// Collection of CIM_Collection objects public static new Collection Enumerate(IWSManClient client) { List ret = CimBase.Enumerate(client); return new Collection(ret); } /// /// Delete the instance of CIM_Collection if it is singular. /// Note: This method will succeed only if a single instance of the class exists. /// /// WS-Management client public static new void Delete(IWSManClient client) { CimBase.Delete(client); } /// /// Represents the keys of the CIM_Collection class. /// public new class CimKeys : CIM_ManagedElement.CimKeys { } } }