CimSession Class
Represents a client-side connection to a CIM server.
Namespace: Microsoft.Management.Infrastructure
Assembly: Microsoft.Management.Infrastructure (in Microsoft.Management.Infrastructure.dll)
Inheritance Hierarchy
System.Object
Microsoft.Management.Infrastructure.CimSession
Syntax
public class CimSession : IDisposable
public ref class CimSession : IDisposable
type CimSession =
class
interface IDisposable
end
Public Class CimSession
Implements IDisposable
Properties
Name | Description | |
---|---|---|
ComputerName | Gets the computer name used to create the current session. |
|
InstanceId | Gets the unique instance ID of the current session object. |
Methods
Name | Description | |
---|---|---|
Close() | Closes a session and releases all associated memory. |
|
CloseAsync() | Closes a session asynchronously and releases all associated memory. |
|
Create(String) | Initializes a new instance of the CimSession class. |
|
Create(String, CimSessionOptions) | Initializes a new instance of the CimSession class. |
|
CreateAsync(String) | Asynchronously initializes a new instance of the CimSession class. |
|
CreateAsync(String, CimSessionOptions) | Asynchronously initializes a new instance of the CimSession class. |
|
CreateInstance(String, CimInstance) | Creates an instance on the server that the session represents. |
|
CreateInstance(String, CimInstance, CimOperationOptions) | Creates an instance on the server that the session represents. |
|
CreateInstanceAsync(String, CimInstance) | Creates asynchronously an instance on the server that the session represents. |
|
CreateInstanceAsync(String, CimInstance, CimOperationOptions) | Creates asynchronously an instance on the server that the session represents. |
|
DeleteInstance(CimInstance) | Deletes an instance on the server represented by the session. |
|
DeleteInstance(String, CimInstance) | Deletes an instance on the server represented by the session. |
|
DeleteInstance(String, CimInstance, CimOperationOptions) | Deletes an instance on the server represented by the session. |
|
DeleteInstanceAsync(CimInstance) | Asynchronously deletes an instance on the server represented by the session. |
|
DeleteInstanceAsync(String, CimInstance) | Asynchronously deletes an instance on the server represented by the session. |
|
DeleteInstanceAsync(String, CimInstance, CimOperationOptions) | Asynchronously deletes an instance on the server represented by the session. |
|
Dispose() | Releases resources associated with this object. |
|
Dispose(Boolean) | Releases resources associated with this object. |
|
EnumerateAssociatedInstances(String, CimInstance, String, String, String, String) | Finds instances that are associated with the specific key instance. |
|
EnumerateAssociatedInstances(String, CimInstance, String, String, String, String, CimOperationOptions) | Finds instances that are associated with the specific key instance. |
|
EnumerateAssociatedInstancesAsync(String, CimInstance, String, String, String, String) | Asynchronously finds instances that are associated with the specific key instance. |
|
EnumerateAssociatedInstancesAsync(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. |
|
EnumerateClasses(String) | Enumerates the classes of a specified session. |
|
EnumerateClasses(String, String) | Enumerates the classes of a specified session. |
|
EnumerateClasses(String, String, CimOperationOptions) | Enumerates the classes of a specified session. |
|
EnumerateClassesAsync(String) | Asynchronous method that enumerates the classes of a specified session. |
|
EnumerateClassesAsync(String, String) | Asynchronous method that enumerates the classes of a specified session. |
|
EnumerateClassesAsync(String, String, CimOperationOptions) | Asynchronous method that enumerates the classes of a specified session. |
|
EnumerateInstances(String, String) | Enumerate all instances on the server represented by the session that are associated with a class. |
|
EnumerateInstances(String, String, CimOperationOptions) | Enumerates synchronously all instances on the server represented by the session that are associated with a class. |
|
EnumerateInstancesAsync(String, String) | Enumerate all instances on the server represented by the session that are associated with a class. |
|
EnumerateInstancesAsync(String, String, CimOperationOptions) | Enumerate all instances on the server represented by the session that are associated with a class. |
|
EnumerateReferencingInstances(String, CimInstance, String, String) | Finds the association object that references the specified key instance. |
|
EnumerateReferencingInstances(String, CimInstance, String, String, CimOperationOptions) | Finds the association object that references the specified key instance. |
|
EnumerateReferencingInstancesAsync(String, CimInstance, String, String) | Asynchronous method that finds the association object that references the specified key instance. |
|
EnumerateReferencingInstancesAsync(String, CimInstance, String, String, CimOperationOptions) | Asynchronous method that finds the association object that references the specified key instance. |
|
Equals(Object) | (Inherited from Object.) |
|
Finalize() | (Inherited from Object.) |
|
GetClass(String, String) | Gets a CimClass object based on a specific class name. |
|
GetClass(String, String, CimOperationOptions) | Gets a CimClass object based on a specific class name. |
|
GetClassAsync(String, String) | Asynchronous method that gets a CimClass object based on a specific class name. |
|
GetClassAsync(String, String, CimOperationOptions) | Asynchronous method that gets a CimClass object based on a specific class name. |
|
GetHashCode() | (Inherited from Object.) |
|
GetInstance(String, CimInstance) | Gets the specified instance from the server represented by the session. |
|
GetInstance(String, CimInstance, CimOperationOptions) | Gets the specified instance from the server represented by the session. |
|
GetInstanceAsync(String, CimInstance) | Asynchronous method that gets the specified instance from the server represented by the session. |
|
GetInstanceAsync(String, CimInstance, CimOperationOptions) | Asynchronous method that gets the specified instance from the server represented by the session. |
|
GetType() | (Inherited from Object.) |
|
InvokeMethod(CimInstance, String, CimMethodParametersCollection) | Invokes an instance method. |
|
InvokeMethod(String, CimInstance, String, CimMethodParametersCollection) | Invokes an instance method. |
|
InvokeMethod(String, CimInstance, String, CimMethodParametersCollection, CimOperationOptions) | Invokes an instance method. |
|
InvokeMethod(String, String, String, CimMethodParametersCollection) | Invokes an instance method. |
|
InvokeMethod(String, String, String, CimMethodParametersCollection, CimOperationOptions) | Invokes an instance method. |
|
InvokeMethodAsync(CimInstance, String, CimMethodParametersCollection) | Invokes an instance method asynchronously. |
|
InvokeMethodAsync(String, CimInstance, String, CimMethodParametersCollection) | Invokes an instance method asynchronously. |
|
InvokeMethodAsync(String, CimInstance, String, CimMethodParametersCollection, CimOperationOptions) | Invokes an instance method asynchronously. |
|
InvokeMethodAsync(String, String, String, CimMethodParametersCollection) | Invokes a static method asynchronously. |
|
InvokeMethodAsync(String, String, String, CimMethodParametersCollection, CimOperationOptions) | Invokes a static method asynchronously. |
|
MemberwiseClone() | (Inherited from Object.) |
|
ModifyInstance(CimInstance) | Updates an existing instance in the server represented by the session. |
|
ModifyInstance(String, CimInstance) | Updates an existing instance in the server represented by the session. |
|
ModifyInstance(String, CimInstance, CimOperationOptions) | Updates an existing instance in the server represented by the session. |
|
ModifyInstanceAsync(CimInstance) | Asynchronous method that updates an existing instance in the server represented by the session. |
|
ModifyInstanceAsync(String, CimInstance) | Asynchronous method that updates an existing instance in the server represented by the session. |
|
ModifyInstanceAsync(String, CimInstance, CimOperationOptions) | Asynchronous method that updates an existing instance in the server represented by the session. |
|
QueryInstances(String, String, String) | Queries for a set of instances based on a query expression. |
|
QueryInstances(String, String, String, CimOperationOptions) | Queries for a set of instances based on a query expression. |
|
QueryInstancesAsync(String, String, String) | Queries asynchronously for a set of instances based on a query expression. |
|
QueryInstancesAsync(String, String, String, CimOperationOptions) | Queries asynchronously for a set of instances based on a query expression. |
|
Subscribe(String, String, String) | Subscribes to an indication on the server represented by the session. |
|
Subscribe(String, String, String, CimOperationOptions) | Subscribes to an indication on the server represented by the session. |
|
Subscribe(String, String, String, CimOperationOptions, CimSubscriptionDeliveryOptions) | Subscribes to an indication on the server represented by the session. |
|
Subscribe(String, String, String, CimSubscriptionDeliveryOptions) | Subscribes to an indication on the server represented by the session. |
|
SubscribeAsync(String, String, String) | Asynchronous method that subscribes to an indication on the server represented by the session. |
|
SubscribeAsync(String, String, String, CimOperationOptions) | Asynchronous method that subscribes to an indication on the server represented by the session. |
|
SubscribeAsync(String, String, String, CimOperationOptions, CimSubscriptionDeliveryOptions) | Asynchronous method that subscribes to an indication on the server represented by the session. |
|
SubscribeAsync(String, String, String, CimSubscriptionDeliveryOptions) | Asynchronous method that subscribes to an indication on the server represented by the session. |
|
TestConnection() | Tests a connection by communicating with the server represented by the session to determine whether it is responding. |
|
TestConnection(CimInstance, CimException) | Tests a connection by communicating with the server represented by the session to determine whether it is responding. |
|
TestConnectionAsync() | Tests a connection by communicating with the server represented by the session to determine whether it is responding. |
|
ToString() | Gets a string that contains the session and computer name.(Overrides Object.ToString().) |
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