Udostępnij za pośrednictwem


ConnectionManagerBase.ExecuteMethod Method (String, String, Generic Dictionary)

Executes the specified class method.

Namespace: Microsoft.ConfigurationManagement.ManagementProvider
Assembly: Microsoft.ConfigurationManagement.ManagementProvider (in microsoft.configurationmanagement.managementprovider.dll)

Usage

'Usage
Dim instance As ConnectionManagerBase
Dim methodClass As String
Dim methodName As String
Dim methodParameters As Dictionary(Of String, Object)
Dim returnValue As IResultObject

returnValue = instance.ExecuteMethod(methodClass, methodName, methodParameters)

Syntax

'Declaration
Public MustOverride Function ExecuteMethod ( _
    methodClass As String, _
    methodName As String, _
    methodParameters As Dictionary(Of String, Object) _
) As IResultObject
public abstract IResultObject ExecuteMethod (
    string methodClass,
    string methodName,
    Dictionary<string,Object> methodParameters
)
public:
virtual IResultObject^ ExecuteMethod (
    String^ methodClass, 
    String^ methodName, 
    Dictionary<String^, Object^>^ methodParameters
) abstract
public abstract IResultObject ExecuteMethod (
    String methodClass, 
    String methodName, 
    Dictionary<String,Object> methodParameters
)
public abstract function ExecuteMethod (
    methodClass : String, 
    methodName : String, 
    methodParameters : Dictionary<String,Object>
) : IResultObject

Parameters

  • methodClass
    [in] The class that defines the method to execute.
  • methodName
    [in] The name of the method.
  • methodParameters
    [in] A System.Collections.Generic.Dictionary object that represents the parameters of the method.

Return Value

IResultObject interface for getting and setting result object properties.

Remarks

For an example of the use of this method, see How to Call a Configuration Manager Object Class Method by Using Managed Code.

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.

Platforms

Development Platforms

Windows Server 2003, Windows Vista

Target Platforms

Windows Server 2003,Windows Vista

See Also

Reference

ConnectionManagerBase Class
ConnectionManagerBase Members
Microsoft.ConfigurationManagement.ManagementProvider Namespace
IResultObject

Other Resources

How to Call a Configuration Manager Object Class Method by Using Managed Code