CimSession.InvokeMethodAsync Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
InvokeMethodAsync(CimInstance, String, CimMethodParametersCollection)
public:
Microsoft::Management::Infrastructure::Generic::CimAsyncResult<Microsoft::Management::Infrastructure::CimMethodResult ^> ^ InvokeMethodAsync(Microsoft::Management::Infrastructure::CimInstance ^ instance, System::String ^ methodName, Microsoft::Management::Infrastructure::CimMethodParametersCollection ^ methodParameters);
public Microsoft.Management.Infrastructure.Generic.CimAsyncResult<Microsoft.Management.Infrastructure.CimMethodResult> InvokeMethodAsync (Microsoft.Management.Infrastructure.CimInstance instance, string methodName, Microsoft.Management.Infrastructure.CimMethodParametersCollection methodParameters);
member this.InvokeMethodAsync : Microsoft.Management.Infrastructure.CimInstance * string * Microsoft.Management.Infrastructure.CimMethodParametersCollection -> Microsoft.Management.Infrastructure.Generic.CimAsyncResult<Microsoft.Management.Infrastructure.CimMethodResult>
Public Function InvokeMethodAsync (instance As CimInstance, methodName As String, methodParameters As CimMethodParametersCollection) As CimAsyncResult(Of CimMethodResult)
Parameters
- instance
- CimInstance
- methodName
- String
- methodParameters
- CimMethodParametersCollection
Returns
Applies to
InvokeMethodAsync(String, CimInstance, String, CimMethodParametersCollection)
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);
public Microsoft.Management.Infrastructure.Generic.CimAsyncResult<Microsoft.Management.Infrastructure.CimMethodResult> InvokeMethodAsync (string namespaceName, Microsoft.Management.Infrastructure.CimInstance instance, string methodName, Microsoft.Management.Infrastructure.CimMethodParametersCollection methodParameters);
member this.InvokeMethodAsync : string * Microsoft.Management.Infrastructure.CimInstance * string * Microsoft.Management.Infrastructure.CimMethodParametersCollection -> Microsoft.Management.Infrastructure.Generic.CimAsyncResult<Microsoft.Management.Infrastructure.CimMethodResult>
Public Function InvokeMethodAsync (namespaceName As String, instance As CimInstance, methodName As String, methodParameters As CimMethodParametersCollection) As CimAsyncResult(Of CimMethodResult)
Parameters
- namespaceName
- String
- instance
- CimInstance
- methodName
- String
- methodParameters
- CimMethodParametersCollection
Returns
Applies to
InvokeMethodAsync(String, String, String, CimMethodParametersCollection)
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);
public Microsoft.Management.Infrastructure.Generic.CimAsyncResult<Microsoft.Management.Infrastructure.CimMethodResult> InvokeMethodAsync (string namespaceName, string className, string methodName, Microsoft.Management.Infrastructure.CimMethodParametersCollection methodParameters);
member this.InvokeMethodAsync : string * string * string * Microsoft.Management.Infrastructure.CimMethodParametersCollection -> Microsoft.Management.Infrastructure.Generic.CimAsyncResult<Microsoft.Management.Infrastructure.CimMethodResult>
Public Function InvokeMethodAsync (namespaceName As String, className As String, methodName As String, methodParameters As CimMethodParametersCollection) As CimAsyncResult(Of CimMethodResult)
Parameters
- namespaceName
- String
- className
- String
- methodName
- String
- methodParameters
- CimMethodParametersCollection
Returns
Applies to
InvokeMethodAsync(String, CimInstance, String, CimMethodParametersCollection, CimOperationOptions)
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);
public Microsoft.Management.Infrastructure.Generic.CimAsyncMultipleResults<Microsoft.Management.Infrastructure.CimMethodResultBase> InvokeMethodAsync (string namespaceName, Microsoft.Management.Infrastructure.CimInstance instance, string methodName, Microsoft.Management.Infrastructure.CimMethodParametersCollection methodParameters, Microsoft.Management.Infrastructure.Options.CimOperationOptions options);
member this.InvokeMethodAsync : string * Microsoft.Management.Infrastructure.CimInstance * string * Microsoft.Management.Infrastructure.CimMethodParametersCollection * Microsoft.Management.Infrastructure.Options.CimOperationOptions -> Microsoft.Management.Infrastructure.Generic.CimAsyncMultipleResults<Microsoft.Management.Infrastructure.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
- String
- instance
- CimInstance
- methodName
- String
- methodParameters
- CimMethodParametersCollection
- options
- CimOperationOptions
Returns
Applies to
InvokeMethodAsync(String, String, String, CimMethodParametersCollection, CimOperationOptions)
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);
public Microsoft.Management.Infrastructure.Generic.CimAsyncMultipleResults<Microsoft.Management.Infrastructure.CimMethodResultBase> InvokeMethodAsync (string namespaceName, string className, string methodName, Microsoft.Management.Infrastructure.CimMethodParametersCollection methodParameters, Microsoft.Management.Infrastructure.Options.CimOperationOptions options);
member this.InvokeMethodAsync : string * string * string * Microsoft.Management.Infrastructure.CimMethodParametersCollection * Microsoft.Management.Infrastructure.Options.CimOperationOptions -> Microsoft.Management.Infrastructure.Generic.CimAsyncMultipleResults<Microsoft.Management.Infrastructure.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
- String
- className
- String
- methodName
- String
- methodParameters
- CimMethodParametersCollection
- options
- CimOperationOptions