CimInstance Class
Represents an instance of a CIM class.
Namespace: Microsoft.Management.Infrastructure
Assembly: Microsoft.Management.Infrastructure (in Microsoft.Management.Infrastructure.dll)
Inheritance Hierarchy
System.Object
Microsoft.Management.Infrastructure.CimInstance
Syntax
[SerializableAttribute]
public sealed class CimInstance : IDisposable, ICloneable, ISerializable
[SerializableAttribute]
public ref class CimInstance sealed : IDisposable, ICloneable,
ISerializable
[<Sealed>]
[<SerializableAttribute>]
type CimInstance =
class
interface IDisposable
interface ICloneable
interface ISerializable
end
<SerializableAttribute>
Public NotInheritable Class CimInstance
Implements IDisposable, ICloneable, ISerializable
Constructors
Name | Description | |
---|---|---|
CimInstance(CimClass) | Initializes a new instance of the CimInstance class. |
|
CimInstance(CimInstance) | Initializes a new instance of the CimInstance class by creating a detailed copy of the specified CimInstance object. |
|
CimInstance(String) | Initializes a new instance of the CimInstance class. |
|
CimInstance(String, String) | Initializes a new instance of the CimInstance class. |
Properties
Name | Description | |
---|---|---|
CimClass | Gets the class metadata associated with the current CimInstance object. |
|
CimInstanceProperties | Gets the properties of the current CimInstance object. |
|
CimSystemProperties | Gets the system properties of the CimInstance object. |
Methods
Name | Description | |
---|---|---|
Dispose() | Releases resources associated with this object. |
|
Equals(Object) | (Inherited from Object.) |
|
GetCimSessionComputerName() | Gets the name of the computer used to retrieve the current instance. |
|
GetCimSessionInstanceId() | Gets the InstanceId of the CIM session used to retrieve the current instance. |
|
GetHashCode() | (Inherited from Object.) |
|
GetObjectData(SerializationInfo, StreamingContext) | Populates a serialization information object with the data needed to serialize the CimInstance object. |
|
GetType() | (Inherited from Object.) |
|
SetCimSessionComputerName(String) | Sets the name of the computer used for the CIM session. |
|
ToString() | Gets a short textual description of the CIM session that generated the instance.(Overrides Object.ToString().) |
Explicit Interface Implementations
Name | Description | |
---|---|---|
ICloneable.Clone() | Creates a new object that is a copy of the current instance. |
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 Namespace
Return to top