Assembly: Microsoft.ConfigurationManagement.ManagementProvider (in microsoft.configurationmanagement.managementprovider.dll)
Usage
Visual Basic |
---|
Dim connectionManager As ConnectionManagerBase Dim className As String Dim returnValue As ManagementClassDescription returnValue = UtilityClass.GetManagementObjectDescriptionFromConnectionManager(connectionManager, className) |
Syntax
Visual Basic |
---|
Public Shared Function GetManagementObjectDescriptionFromConnectionManager ( _ connectionManager As ConnectionManagerBase, _ className As String _ ) As ManagementClassDescription |
C# |
---|
public static ManagementClassDescription GetManagementObjectDescriptionFromConnectionManager ( ConnectionManagerBase connectionManager, string className ) |
C++ |
---|
public: static ManagementClassDescription^ GetManagementObjectDescriptionFromConnectionManager ( ConnectionManagerBase^ connectionManager, String^ className ) |
J# |
---|
public static ManagementClassDescription GetManagementObjectDescriptionFromConnectionManager ( ConnectionManagerBase connectionManager, String className ) |
JScript |
---|
public static function GetManagementObjectDescriptionFromConnectionManager ( connectionManager : ConnectionManagerBase, className : String ) : ManagementClassDescription |
Parameters
- connectionManager
-
[in] ConnectionManagerBase object that represents the connection manager.
- className
-
[in] Name of the management class for which to retrieve the management object.
Return Value
ManagementClassDescription object.Exceptions
Exception type | Condition |
---|---|
ArgumentOutOfRangeException |
The requested management class was not found. |
Remarks
A management object is an instance of ResultObjectBase.
Thread Safety
Any public static (Shared in Visual
Basic) members of this type are thread safe. Any instance members
are not guaranteed to be thread safe.