Condividi tramite


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
System_CAPS_pubmethod CimInstance(CimClass)

Initializes a new instance of the CimInstance class.

System_CAPS_pubmethod CimInstance(CimInstance)

Initializes a new instance of the CimInstance class by creating a detailed copy of the specified CimInstance object.

System_CAPS_pubmethod CimInstance(String)

Initializes a new instance of the CimInstance class.

System_CAPS_pubmethod CimInstance(String, String)

Initializes a new instance of the CimInstance class.

Properties

Name Description
System_CAPS_pubproperty CimClass

Gets the class metadata associated with the current CimInstance object.

System_CAPS_pubproperty CimInstanceProperties

Gets the properties of the current CimInstance object.

System_CAPS_pubproperty CimSystemProperties

Gets the system properties of the CimInstance object.

Methods

Name Description
System_CAPS_pubmethod Dispose()

Releases resources associated with this object.

System_CAPS_pubmethod Equals(Object)

(Inherited from Object.)

System_CAPS_pubmethod GetCimSessionComputerName()

Gets the name of the computer used to retrieve the current instance.

System_CAPS_pubmethod GetCimSessionInstanceId()

Gets the InstanceId of the CIM session used to retrieve the current instance.

System_CAPS_pubmethod GetHashCode()

(Inherited from Object.)

System_CAPS_pubmethod GetObjectData(SerializationInfo, StreamingContext)

Populates a serialization information object with the data needed to serialize the CimInstance object.

System_CAPS_pubmethod GetType()

(Inherited from Object.)

System_CAPS_pubmethod SetCimSessionComputerName(String)

Sets the name of the computer used for the CIM session.

System_CAPS_pubmethod ToString()

Gets a short textual description of the CIM session that generated the instance.(Overrides Object.ToString().)

Explicit Interface Implementations

Name Description
System_CAPS_pubinterfaceSystem_CAPS_privmethod 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