CimSession.GetInstanceAsync Method (String, CimInstance, CimOperationOptions)
Asynchronous method that gets the specified instance from the server represented by the session.
Namespace: Microsoft.Management.Infrastructure
Assembly: Microsoft.Management.Infrastructure (in Microsoft.Management.Infrastructure.dll)
public CimAsyncResult<CimInstance> GetInstanceAsync(
string namespaceName,
CimInstance instanceId,
CimOperationOptions options
)
public:
CimAsyncResult<CimInstance^>^ GetInstanceAsync(
String^ namespaceName,
CimInstance^ instanceId,
CimOperationOptions^ options
)
member GetInstanceAsync :
namespaceName:string *
instanceId:CimInstance *
options:CimOperationOptions -> CimAsyncResult<CimInstance>
Public Function GetInstanceAsync (
namespaceName As String,
instanceId As CimInstance,
options As CimOperationOptions
) As CimAsyncResult(Of CimInstance)
namespaceName
Type: System.StringA null-terminated string that contains the optional namespace name to carry out the operation. If none is specified, the server will pick a default. The namespace cannot include a computer name. It can only be in the form of a namespace name separated by a slash mark character (/). For example, the following would be a valid namespaceName value: root/cimv2.
instanceId
Type: Microsoft.Management.Infrastructure.CimInstanceA CimInstance object that represents the class name and keys of the instance to be retrieved from the server.
options
Type: Microsoft.Management.Infrastructure.Options.CimOperationOptionsA CimOperationOptions object that specifies options, such as timeouts, and how to control the CIM semantics.
Type: Microsoft.Management.Infrastructure.Generic.CimAsyncResult<CimInstance>
A CimAsyncResult<T> object that represents an asynchronous operation that returns a single result.
GetInstanceAsync Overload
CimSession Class
Microsoft.Management.Infrastructure Namespace
Return to top