다음을 통해 공유


CimSession.EnumerateClasses Method (String)

 

Enumerates the classes of a specified session.

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

Syntax

public IEnumerable<CimClass> EnumerateClasses(
    string namespaceName
)
public:
IEnumerable<CimClass^>^ EnumerateClasses(
    String^ namespaceName
)
member EnumerateClasses : 
        namespaceName:string -> IEnumerable<CimClass>
Public Function EnumerateClasses (
    namespaceName As String
) As IEnumerable(Of CimClass)

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.

Return Value

Type: System.Collections.Generic.IEnumerable<CimClass>

An IEnumerable<T> interface that can be used to enumerate the instances.

See Also

EnumerateClasses Overload
CimSession Class
Microsoft.Management.Infrastructure Namespace

Return to top