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 a static method asynchronously.
Namespace:   Microsoft.Management.Infrastructure
Assembly:  Microsoft.Management.Infrastructure (in Microsoft.Management.Infrastructure.dll)
Syntax
public CimAsyncResult<CimMethodResult> InvokeMethodAsync(
    string namespaceName,
    string className,
    string methodName,
    CimMethodParametersCollection methodParameters
)
public:
CimAsyncResult<CimMethodResult^>^ InvokeMethodAsync(
    String^ namespaceName,
    String^ className,
    String^ methodName,
    CimMethodParametersCollection^ methodParameters
)
member InvokeMethodAsync : 
        namespaceName:string *
        className:string *
        methodName:string *
        methodParameters:CimMethodParametersCollection -> CimAsyncResult<CimMethodResult>
Public Function InvokeMethodAsync (
    namespaceName As String,
    className As String,
    methodName As String,
    methodParameters As CimMethodParametersCollection
) As CimAsyncResult(Of CimMethodResult)
Parameters
- namespaceName 
 Type: System.String- The namespace of the CIM class. 
- className 
 Type: System.String- The name of the class. 
- 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. 
Return Value
Type: Microsoft.Management.Infrastructure.Generic.CimAsyncResult<CimMethodResult>
Returns CimAsyncResult<T>.
See Also
InvokeMethodAsync Overload
CimSession Class
Microsoft.Management.Infrastructure Namespace
Return to top