CimSession.QueryInstancesAsync Method (String, String, String, CimOperationOptions)
Queries asynchronously for a set of instances based on a query expression.
Namespace: Microsoft.Management.Infrastructure
Assembly: Microsoft.Management.Infrastructure (in Microsoft.Management.Infrastructure.dll)
Syntax
public CimAsyncMultipleResults<CimInstance> QueryInstancesAsync(
string namespaceName,
string queryDialect,
string queryExpression,
CimOperationOptions options
)
public:
CimAsyncMultipleResults<CimInstance^>^ QueryInstancesAsync(
String^ namespaceName,
String^ queryDialect,
String^ queryExpression,
CimOperationOptions^ options
)
member QueryInstancesAsync :
namespaceName:string *
queryDialect:string *
queryExpression:string *
options:CimOperationOptions -> CimAsyncMultipleResults<CimInstance>
Public Function QueryInstancesAsync (
namespaceName As String,
queryDialect As String,
queryExpression As String,
options As CimOperationOptions
) As CimAsyncMultipleResults(Of CimInstance)
Parameters
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.
queryDialect
Type: System.StringA string that contains the dialect of the query being passed. This value can be either WQL or CQL. Note that some servers do not support all query types.
queryExpression
Type: System.StringA string that contains the query expression to be carried out. Usually a query is needed, but if a WS-Management endpoint is being used, a resource URI can be passed. For WMI DCOM transport, this value must be specified.
options
Type: Microsoft.Management.Infrastructure.Options.CimOperationOptionsA CimOperationOptions object that specifies options, such as timeouts, and how to control the CIM semantics.
Return Value
Type: Microsoft.Management.Infrastructure.Generic.CimAsyncMultipleResults<CimInstance>
The asynchronous operation that contains the returned CIM instances.
See Also
QueryInstancesAsync Overload
CimSession Class
Microsoft.Management.Infrastructure Namespace
Return to top