CimSession.InvokeMethod Method (String, CimInstance, 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,
CimInstance instance,
string methodName,
CimMethodParametersCollection methodParameters,
CimOperationOptions options
)
public:
CimMethodResult^ InvokeMethod(
String^ namespaceName,
CimInstance^ instance,
String^ methodName,
CimMethodParametersCollection^ methodParameters,
CimOperationOptions^ options
)
member InvokeMethod :
namespaceName:string *
instance:CimInstance *
methodName:string *
methodParameters:CimMethodParametersCollection *
options:CimOperationOptions -> CimMethodResult
Public Function InvokeMethod (
namespaceName As String,
instance As CimInstance,
methodName As String,
methodParameters As CimMethodParametersCollection,
options As CimOperationOptions
) As CimMethodResult
Parameters
namespaceName
Type: System.StringThe namespace of the CIM instance.
instance
Type: Microsoft.Management.Infrastructure.CimInstanceThe instance to use when invoking the method.
methodName
Type: System.StringThe name of the method to call.
methodParameters
Type: Microsoft.Management.Infrastructure.CimMethodParametersCollectionThe parameters for the method you want to invoke.
options
Type: Microsoft.Management.Infrastructure.Options.CimOperationOptionsThe CIM operation options.
Return Value
Type: Microsoft.Management.Infrastructure.CimMethodResult
Returns CimMethodResult.
See Also
InvokeMethod Overload
CimSession Class
Microsoft.Management.Infrastructure Namespace
Return to top