Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Invokes an instance method asynchronously.
Namespace:   Microsoft.Management.Infrastructure
Assembly:  Microsoft.Management.Infrastructure (in Microsoft.Management.Infrastructure.dll)
Syntax
public CimAsyncMultipleResults<CimMethodResultBase> InvokeMethodAsync(
    string namespaceName,
    CimInstance instance,
    string methodName,
    CimMethodParametersCollection methodParameters,
    CimOperationOptions options
)
public:
CimAsyncMultipleResults<CimMethodResultBase^>^ InvokeMethodAsync(
    String^ namespaceName,
    CimInstance^ instance,
    String^ methodName,
    CimMethodParametersCollection^ methodParameters,
    CimOperationOptions^ options
)
member InvokeMethodAsync : 
        namespaceName:string *
        instance:CimInstance *
        methodName:string *
        methodParameters:CimMethodParametersCollection *
        options:CimOperationOptions -> CimAsyncMultipleResults<CimMethodResultBase>
Public Function InvokeMethodAsync (
    namespaceName As String,
    instance As CimInstance,
    methodName As String,
    methodParameters As CimMethodParametersCollection,
    options As CimOperationOptions
) As CimAsyncMultipleResults(Of CimMethodResultBase)
Parameters
- namespaceName 
 Type: System.String- The namespace of the CIM instance. 
- instance 
 Type: Microsoft.Management.Infrastructure.CimInstance- The instance to use when invoking the method. 
- methodName 
 Type: System.String- The name of the method to call. 
- methodParameters 
 Type: Microsoft.Management.Infrastructure.CimMethodParametersCollection- The parameters for the method you want to invoke. 
- options 
 Type: Microsoft.Management.Infrastructure.Options.CimOperationOptions- The CIM operation options. 
Return Value
Type: Microsoft.Management.Infrastructure.Generic.CimAsyncMultipleResults<CimMethodResultBase>
Returns CimAsyncMultipleResults<T>.
See Also
InvokeMethodAsync Overload
CimSession Class
Microsoft.Management.Infrastructure Namespace
Return to top