CimSession.InvokeMethodAsync Method (String, String, String, CimMethodParametersCollection, CimOperationOptions)
Invokes a static method asynchronously.
Namespace: Microsoft.Management.Infrastructure
Assembly: Microsoft.Management.Infrastructure (in Microsoft.Management.Infrastructure.dll)
Syntax
public CimAsyncMultipleResults<CimMethodResultBase> InvokeMethodAsync(
string namespaceName,
string className,
string methodName,
CimMethodParametersCollection methodParameters,
CimOperationOptions options
)
public:
CimAsyncMultipleResults<CimMethodResultBase^>^ InvokeMethodAsync(
String^ namespaceName,
String^ className,
String^ methodName,
CimMethodParametersCollection^ methodParameters,
CimOperationOptions^ options
)
member InvokeMethodAsync :
namespaceName:string *
className:string *
methodName:string *
methodParameters:CimMethodParametersCollection *
options:CimOperationOptions -> CimAsyncMultipleResults<CimMethodResultBase>
Public Function InvokeMethodAsync (
namespaceName As String,
className As String,
methodName As String,
methodParameters As CimMethodParametersCollection,
options As CimOperationOptions
) As CimAsyncMultipleResults(Of CimMethodResultBase)
Parameters
namespaceName
Type: System.StringThe namespace of the CIM class.
className
Type: System.StringThe name of the class.
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 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