CimSession Class

 

Represents a client-side connection to a CIM server.

Namespace:   Microsoft.Management.Infrastructure
Assembly:  Microsoft.Management.Infrastructure (in Microsoft.Management.Infrastructure.dll)

System.Object
  Microsoft.Management.Infrastructure.CimSession

public class CimSession : IDisposable

NameDescription
System_CAPS_pubpropertyComputerName

Gets the computer name used to create the current session.

System_CAPS_pubpropertyInstanceId

Gets the unique instance ID of the current session object.

NameDescription
System_CAPS_pubmethodClose()

Closes a session and releases all associated memory.

System_CAPS_pubmethodCloseAsync()

Closes a session asynchronously and releases all associated memory.

System_CAPS_pubmethodSystem_CAPS_staticCreate(String)

Initializes a new instance of the CimSession class.

System_CAPS_pubmethodSystem_CAPS_staticCreate(String, CimSessionOptions)

Initializes a new instance of the CimSession class.

System_CAPS_pubmethodSystem_CAPS_staticCreateAsync(String)

Asynchronously initializes a new instance of the CimSession class.

System_CAPS_pubmethodSystem_CAPS_staticCreateAsync(String, CimSessionOptions)

Asynchronously initializes a new instance of the CimSession class.

System_CAPS_pubmethodCreateInstance(String, CimInstance)

Creates an instance on the server that the session represents.

System_CAPS_pubmethodCreateInstance(String, CimInstance, CimOperationOptions)

Creates an instance on the server that the session represents.

System_CAPS_pubmethodCreateInstanceAsync(String, CimInstance)

Creates asynchronously an instance on the server that the session represents.

System_CAPS_pubmethodCreateInstanceAsync(String, CimInstance, CimOperationOptions)

Creates asynchronously an instance on the server that the session represents.

System_CAPS_pubmethodDeleteInstance(CimInstance)

Deletes an instance on the server represented by the session.

System_CAPS_pubmethodDeleteInstance(String, CimInstance)

Deletes an instance on the server represented by the session.

System_CAPS_pubmethodDeleteInstance(String, CimInstance, CimOperationOptions)

Deletes an instance on the server represented by the session.

System_CAPS_pubmethodDeleteInstanceAsync(CimInstance)

Asynchronously deletes an instance on the server represented by the session.

System_CAPS_pubmethodDeleteInstanceAsync(String, CimInstance)

Asynchronously deletes an instance on the server represented by the session.

System_CAPS_pubmethodDeleteInstanceAsync(String, CimInstance, CimOperationOptions)

Asynchronously deletes an instance on the server represented by the session.

System_CAPS_pubmethodDispose()

Releases resources associated with this object.

System_CAPS_protmethodDispose(Boolean)

Releases resources associated with this object.

System_CAPS_pubmethodEnumerateAssociatedInstances(String, CimInstance, String, String, String, String)

Finds instances that are associated with the specific key instance.

System_CAPS_pubmethodEnumerateAssociatedInstances(String, CimInstance, String, String, String, String, CimOperationOptions)

Finds instances that are associated with the specific key instance.

System_CAPS_pubmethodEnumerateAssociatedInstancesAsync(String, CimInstance, String, String, String, String)

Asynchronously finds instances that are associated with the specific key instance.

System_CAPS_pubmethodEnumerateAssociatedInstancesAsync(String, CimInstance, String, String, String, String, CimOperationOptions)

Asynchronously finds instances that are associated with the specific key instance that is using the specified operation options.

System_CAPS_pubmethodEnumerateClasses(String)

Enumerates the classes of a specified session.

System_CAPS_pubmethodEnumerateClasses(String, String)

Enumerates the classes of a specified session.

System_CAPS_pubmethodEnumerateClasses(String, String, CimOperationOptions)

Enumerates the classes of a specified session.

System_CAPS_pubmethodEnumerateClassesAsync(String)

Asynchronous method that enumerates the classes of a specified session.

System_CAPS_pubmethodEnumerateClassesAsync(String, String)

Asynchronous method that enumerates the classes of a specified session.

System_CAPS_pubmethodEnumerateClassesAsync(String, String, CimOperationOptions)

Asynchronous method that enumerates the classes of a specified session.

System_CAPS_pubmethodEnumerateInstances(String, String)

Enumerate all instances on the server represented by the session that are associated with a class.

System_CAPS_pubmethodEnumerateInstances(String, String, CimOperationOptions)

Enumerates synchronously all instances on the server represented by the session that are associated with a class.

System_CAPS_pubmethodEnumerateInstancesAsync(String, String)

Enumerate all instances on the server represented by the session that are associated with a class.

System_CAPS_pubmethodEnumerateInstancesAsync(String, String, CimOperationOptions)

Enumerate all instances on the server represented by the session that are associated with a class.

System_CAPS_pubmethodEnumerateReferencingInstances(String, CimInstance, String, String)

Finds the association object that references the specified key instance.

System_CAPS_pubmethodEnumerateReferencingInstances(String, CimInstance, String, String, CimOperationOptions)

Finds the association object that references the specified key instance.

System_CAPS_pubmethodEnumerateReferencingInstancesAsync(String, CimInstance, String, String)

Asynchronous method that finds the association object that references the specified key instance.

System_CAPS_pubmethodEnumerateReferencingInstancesAsync(String, CimInstance, String, String, CimOperationOptions)

Asynchronous method that finds the association object that references the specified key instance.

System_CAPS_pubmethodEquals(Object)

(Inherited from Object.)

System_CAPS_protmethodFinalize()

(Inherited from Object.)

System_CAPS_pubmethodGetClass(String, String)

Gets a CimClass object based on a specific class name.

System_CAPS_pubmethodGetClass(String, String, CimOperationOptions)

Gets a CimClass object based on a specific class name.

System_CAPS_pubmethodGetClassAsync(String, String)

Asynchronous method that gets a CimClass object based on a specific class name.

System_CAPS_pubmethodGetClassAsync(String, String, CimOperationOptions)

Asynchronous method that gets a CimClass object based on a specific class name.

System_CAPS_pubmethodGetHashCode()

(Inherited from Object.)

System_CAPS_pubmethodGetInstance(String, CimInstance)

Gets the specified instance from the server represented by the session.

System_CAPS_pubmethodGetInstance(String, CimInstance, CimOperationOptions)

Gets the specified instance from the server represented by the session.

System_CAPS_pubmethodGetInstanceAsync(String, CimInstance)

Asynchronous method that gets the specified instance from the server represented by the session.

System_CAPS_pubmethodGetInstanceAsync(String, CimInstance, CimOperationOptions)

Asynchronous method that gets the specified instance from the server represented by the session.

System_CAPS_pubmethodGetType()

(Inherited from Object.)

System_CAPS_pubmethodInvokeMethod(CimInstance, String, CimMethodParametersCollection)

Invokes an instance method.

System_CAPS_pubmethodInvokeMethod(String, CimInstance, String, CimMethodParametersCollection)

Invokes an instance method.

System_CAPS_pubmethodInvokeMethod(String, CimInstance, String, CimMethodParametersCollection, CimOperationOptions)

Invokes an instance method.

System_CAPS_pubmethodInvokeMethod(String, String, String, CimMethodParametersCollection)

Invokes an instance method.

System_CAPS_pubmethodInvokeMethod(String, String, String, CimMethodParametersCollection, CimOperationOptions)

Invokes an instance method.

System_CAPS_pubmethodInvokeMethodAsync(CimInstance, String, CimMethodParametersCollection)

Invokes an instance method asynchronously.

System_CAPS_pubmethodInvokeMethodAsync(String, CimInstance, String, CimMethodParametersCollection)

Invokes an instance method asynchronously.

System_CAPS_pubmethodInvokeMethodAsync(String, CimInstance, String, CimMethodParametersCollection, CimOperationOptions)

Invokes an instance method asynchronously.

System_CAPS_pubmethodInvokeMethodAsync(String, String, String, CimMethodParametersCollection)

Invokes a static method asynchronously.

System_CAPS_pubmethodInvokeMethodAsync(String, String, String, CimMethodParametersCollection, CimOperationOptions)

Invokes a static method asynchronously.

System_CAPS_protmethodMemberwiseClone()

(Inherited from Object.)

System_CAPS_pubmethodModifyInstance(CimInstance)

Updates an existing instance in the server represented by the session.

System_CAPS_pubmethodModifyInstance(String, CimInstance)

Updates an existing instance in the server represented by the session.

System_CAPS_pubmethodModifyInstance(String, CimInstance, CimOperationOptions)

Updates an existing instance in the server represented by the session.

System_CAPS_pubmethodModifyInstanceAsync(CimInstance)

Asynchronous method that updates an existing instance in the server represented by the session.

System_CAPS_pubmethodModifyInstanceAsync(String, CimInstance)

Asynchronous method that updates an existing instance in the server represented by the session.

System_CAPS_pubmethodModifyInstanceAsync(String, CimInstance, CimOperationOptions)

Asynchronous method that updates an existing instance in the server represented by the session.

System_CAPS_pubmethodQueryInstances(String, String, String)

Queries for a set of instances based on a query expression.

System_CAPS_pubmethodQueryInstances(String, String, String, CimOperationOptions)

Queries for a set of instances based on a query expression.

System_CAPS_pubmethodQueryInstancesAsync(String, String, String)

Queries asynchronously for a set of instances based on a query expression.

System_CAPS_pubmethodQueryInstancesAsync(String, String, String, CimOperationOptions)

Queries asynchronously for a set of instances based on a query expression.

System_CAPS_pubmethodSubscribe(String, String, String)

Subscribes to an indication on the server represented by the session.

System_CAPS_pubmethodSubscribe(String, String, String, CimOperationOptions)

Subscribes to an indication on the server represented by the session.

System_CAPS_pubmethodSubscribe(String, String, String, CimOperationOptions, CimSubscriptionDeliveryOptions)

Subscribes to an indication on the server represented by the session.

System_CAPS_pubmethodSubscribe(String, String, String, CimSubscriptionDeliveryOptions)

Subscribes to an indication on the server represented by the session.

System_CAPS_pubmethodSubscribeAsync(String, String, String)

Asynchronous method that subscribes to an indication on the server represented by the session.

System_CAPS_pubmethodSubscribeAsync(String, String, String, CimOperationOptions)

Asynchronous method that subscribes to an indication on the server represented by the session.

System_CAPS_pubmethodSubscribeAsync(String, String, String, CimOperationOptions, CimSubscriptionDeliveryOptions)

Asynchronous method that subscribes to an indication on the server represented by the session.

System_CAPS_pubmethodSubscribeAsync(String, String, String, CimSubscriptionDeliveryOptions)

Asynchronous method that subscribes to an indication on the server represented by the session.

System_CAPS_pubmethodTestConnection()

Tests a connection by communicating with the server represented by the session to determine whether it is responding.

System_CAPS_pubmethodTestConnection(CimInstance, CimException)

Tests a connection by communicating with the server represented by the session to determine whether it is responding.

System_CAPS_pubmethodTestConnectionAsync()

Tests a connection by communicating with the server represented by the session to determine whether it is responding.

System_CAPS_pubmethodToString()

Gets a string that contains the session and computer name.(Overrides Object.ToString().)

Any public static ( Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Return to top

Community Additions

ADD
Show: