CimSession.InvokeMethodAsync Method

Definition

Overloads

InvokeMethodAsync(CimInstance, String, CimMethodParametersCollection)

C++
public:
 Microsoft::Management::Infrastructure::Generic::CimAsyncResult<Microsoft::Management::Infrastructure::CimMethodResult ^> ^ InvokeMethodAsync(Microsoft::Management::Infrastructure::CimInstance ^ instance, System::String ^ methodName, Microsoft::Management::Infrastructure::CimMethodParametersCollection ^ methodParameters);

Parameters

instance
CimInstance
methodName
String

Returns

Applies to

PowerShell SDK 7.4.0 and other versions
Product Versions
PowerShell SDK 7.2.0, 7.3.0, 7.4.0
Windows PowerShell 5.1.0.0

InvokeMethodAsync(String, CimInstance, String, CimMethodParametersCollection)

C++
public:
 Microsoft::Management::Infrastructure::Generic::CimAsyncResult<Microsoft::Management::Infrastructure::CimMethodResult ^> ^ InvokeMethodAsync(System::String ^ namespaceName, Microsoft::Management::Infrastructure::CimInstance ^ instance, System::String ^ methodName, Microsoft::Management::Infrastructure::CimMethodParametersCollection ^ methodParameters);

Parameters

namespaceName
String
instance
CimInstance
methodName
String

Returns

Applies to

PowerShell SDK 7.4.0 and other versions
Product Versions
PowerShell SDK 7.2.0, 7.3.0, 7.4.0
Windows PowerShell 5.1.0.0

InvokeMethodAsync(String, String, String, CimMethodParametersCollection)

C++
public:
 Microsoft::Management::Infrastructure::Generic::CimAsyncResult<Microsoft::Management::Infrastructure::CimMethodResult ^> ^ InvokeMethodAsync(System::String ^ namespaceName, System::String ^ className, System::String ^ methodName, Microsoft::Management::Infrastructure::CimMethodParametersCollection ^ methodParameters);

Parameters

namespaceName
String
className
String
methodName
String

Returns

Applies to

PowerShell SDK 7.4.0 and other versions
Product Versions
PowerShell SDK 7.2.0, 7.3.0, 7.4.0
Windows PowerShell 5.1.0.0

InvokeMethodAsync(String, CimInstance, String, CimMethodParametersCollection, CimOperationOptions)

C++
public:
 Microsoft::Management::Infrastructure::Generic::CimAsyncMultipleResults<Microsoft::Management::Infrastructure::CimMethodResultBase ^> ^ InvokeMethodAsync(System::String ^ namespaceName, Microsoft::Management::Infrastructure::CimInstance ^ instance, System::String ^ methodName, Microsoft::Management::Infrastructure::CimMethodParametersCollection ^ methodParameters, Microsoft::Management::Infrastructure::Options::CimOperationOptions ^ options);

Parameters

namespaceName
String
instance
CimInstance
methodName
String

Returns

Applies to

PowerShell SDK 7.4.0 and other versions
Product Versions
PowerShell SDK 7.2.0, 7.3.0, 7.4.0
Windows PowerShell 5.1.0.0

InvokeMethodAsync(String, String, String, CimMethodParametersCollection, CimOperationOptions)

C++
public:
 Microsoft::Management::Infrastructure::Generic::CimAsyncMultipleResults<Microsoft::Management::Infrastructure::CimMethodResultBase ^> ^ InvokeMethodAsync(System::String ^ namespaceName, System::String ^ className, System::String ^ methodName, Microsoft::Management::Infrastructure::CimMethodParametersCollection ^ methodParameters, Microsoft::Management::Infrastructure::Options::CimOperationOptions ^ options);

Parameters

namespaceName
String
className
String
methodName
String

Returns

Applies to

PowerShell SDK 7.4.0 and other versions
Product Versions
PowerShell SDK 7.2.0, 7.3.0, 7.4.0
Windows PowerShell 5.1.0.0