Share via


CimSession.InvokeMethod Method (String, String, String, CimMethodParametersCollection, CimOperationOptions)

 

Invokes an instance method.

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

Syntax

public CimMethodResult InvokeMethod(
    string namespaceName,
    string className,
    string methodName,
    CimMethodParametersCollection methodParameters,
    CimOperationOptions options
)
public:
CimMethodResult^ InvokeMethod(
    String^ namespaceName,
    String^ className,
    String^ methodName,
    CimMethodParametersCollection^ methodParameters,
    CimOperationOptions^ options
)
member InvokeMethod : 
        namespaceName:string *
        className:string *
        methodName:string *
        methodParameters:CimMethodParametersCollection *
        options:CimOperationOptions -> CimMethodResult
Public Function InvokeMethod (
    namespaceName As String,
    className As String,
    methodName As String,
    methodParameters As CimMethodParametersCollection,
    options As CimOperationOptions
) As CimMethodResult

Parameters

  • namespaceName
    Type: System.String

    The namespace of the CIM instance.

  • className
    Type: System.String

    The name of the class representing the instance.

Return Value

Type: Microsoft.Management.Infrastructure.CimMethodResult

Returns CimMethodResult.

See Also

InvokeMethod Overload
CimSession Class
Microsoft.Management.Infrastructure Namespace

Return to top