CimSession.InvokeMethodAsync Method (String, CimInstance, String, CimMethodParametersCollection)
Invokes an instance method asynchronously.
Namespace: Microsoft.Management.Infrastructure
Assembly: Microsoft.Management.Infrastructure (in Microsoft.Management.Infrastructure.dll)
Syntax
public CimAsyncResult<CimMethodResult> InvokeMethodAsync(
string namespaceName,
CimInstance instance,
string methodName,
CimMethodParametersCollection methodParameters
)
public:
CimAsyncResult<CimMethodResult^>^ InvokeMethodAsync(
String^ namespaceName,
CimInstance^ instance,
String^ methodName,
CimMethodParametersCollection^ methodParameters
)
member InvokeMethodAsync :
namespaceName:string *
instance:CimInstance *
methodName:string *
methodParameters:CimMethodParametersCollection -> CimAsyncResult<CimMethodResult>
Public Function InvokeMethodAsync (
namespaceName As String,
instance As CimInstance,
methodName As String,
methodParameters As CimMethodParametersCollection
) As CimAsyncResult(Of 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.
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