Partager via


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

Executes the specified class method and traces the method parameters to a log file if required.

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 traceParameters As Boolean
Dim returnValue As IResultObject

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

Syntax

'Declaration
Public MustOverride Function ExecuteMethod ( _
    methodClass As String, _
    methodName As String, _
    methodParameters As Dictionary(Of String, Object), _
    traceParameters As Boolean _
) As IResultObject
public abstract IResultObject ExecuteMethod (
    string methodClass,
    string methodName,
    Dictionary<string,Object> methodParameters,
    bool traceParameters
)
public:
virtual IResultObject^ ExecuteMethod (
    String^ methodClass, 
    String^ methodName, 
    Dictionary<String^, Object^>^ methodParameters, 
    bool traceParameters
) abstract
public abstract IResultObject ExecuteMethod (
    String methodClass, 
    String methodName, 
    Dictionary<String,Object> methodParameters, 
    boolean traceParameters
)
public abstract function ExecuteMethod (
    methodClass : String, 
    methodName : String, 
    methodParameters : Dictionary<String,Object>, 
    traceParameters : boolean
) : 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 input parameters of the method.
  • traceParameters
    [in] true if the method should trace the class method parameters to a log file. See the SmsTraceSource property.

Return Value

IResultObject interface for getting and setting result object properties.

Remarks

Your application should set the traceParameters parameter to false if the class method contains sensitive information that should not be logged.

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
SmsTraceSource
IResultObject