CimSession.EnumerateClassesAsync Method (String, String)
Asynchronous method that enumerates the classes of a specified session.
Namespace: Microsoft.Management.Infrastructure
Assembly: Microsoft.Management.Infrastructure (in Microsoft.Management.Infrastructure.dll)
Syntax
public CimAsyncMultipleResults<CimClass> EnumerateClassesAsync(
string namespaceName,
string className
)
public:
CimAsyncMultipleResults<CimClass^>^ EnumerateClassesAsync(
String^ namespaceName,
String^ className
)
member EnumerateClassesAsync :
namespaceName:string *
className:string -> CimAsyncMultipleResults<CimClass>
Public Function EnumerateClassesAsync (
namespaceName As String,
className As String
) As CimAsyncMultipleResults(Of CimClass)
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.
className
Type: System.StringA null-terminated string that contains the class name of the class to retrieve.
Return Value
Type: Microsoft.Management.Infrastructure.Generic.CimAsyncMultipleResults<CimClass>
A CimAsyncMultipleResults<T> object that represents an asynchronous operation that returns multiple results.
See Also
EnumerateClassesAsync Overload
CimSession Class
Microsoft.Management.Infrastructure Namespace
Return to top