CimSession.GetClass Method (String, String, CimOperationOptions)
Gets a CimClass object based on a specific class name.
Namespace: Microsoft.Management.Infrastructure
Assembly: Microsoft.Management.Infrastructure (in Microsoft.Management.Infrastructure.dll)
Syntax
public CimClass GetClass(
string namespaceName,
string className,
CimOperationOptions options
)
public:
CimClass^ GetClass(
String^ namespaceName,
String^ className,
CimOperationOptions^ options
)
member GetClass :
namespaceName:string *
className:string *
options:CimOperationOptions -> CimClass
Public Function GetClass (
namespaceName As String,
className As String,
options As CimOperationOptions
) As 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.
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.CimClass
The CimClass matching the specified class name.
See Also
GetClass Overload
CimSession Class
Microsoft.Management.Infrastructure Namespace
Return to top