CimSession.EnumerateInstancesAsync Method (String, String, CimOperationOptions)

 

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

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

Syntax

public CimAsyncMultipleResults<CimInstance> EnumerateInstancesAsync(
    string namespaceName,
    string className,
    CimOperationOptions options
)
public:
CimAsyncMultipleResults<CimInstance^>^ EnumerateInstancesAsync(
    String^ namespaceName,
    String^ className,
    CimOperationOptions^ options
)
member EnumerateInstancesAsync : 
        namespaceName:string *
        className:string *
        options:CimOperationOptions -> CimAsyncMultipleResults<CimInstance>
Public Function EnumerateInstancesAsync (
    namespaceName As String,
    className As String,
    options As CimOperationOptions
) As CimAsyncMultipleResults(Of CimInstance)

Parameters

  • namespaceName
    Type: System.String

    A 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.

  • className
    Type: System.String

    A null-terminated string that contains the class name of the class to retrieve.

Return Value

Type: Microsoft.Management.Infrastructure.Generic.CimAsyncMultipleResults<CimInstance>

A CimAsyncMultipleResults<T> object that represents an asynchronous operation that returns multiple results.

See Also

EnumerateInstancesAsync Overload
CimSession Class
Microsoft.Management.Infrastructure Namespace

Return to top