Amazon.IdentityManagement.AmazonIdentityManagementServiceClient.DeleteVirtualMFADeviceAsync C# (CSharp) Метод

DeleteVirtualMFADeviceAsync() публичный Метод

Initiates the asynchronous execution of the DeleteVirtualMFADevice operation.
public DeleteVirtualMFADeviceAsync ( DeleteVirtualMFADeviceRequest request, DeleteVirtualMFADeviceResponse>.AmazonServiceCallback callback, AsyncOptions options = null ) : void
request Amazon.IdentityManagement.Model.DeleteVirtualMFADeviceRequest Container for the necessary parameters to execute the DeleteVirtualMFADevice operation on AmazonIdentityManagementServiceClient.
callback DeleteVirtualMFADeviceResponse>.AmazonServiceCallback An Action delegate that is invoked when the operation completes.
options Amazon.Runtime.AsyncOptions A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.
Результат void
        public void DeleteVirtualMFADeviceAsync(DeleteVirtualMFADeviceRequest request, AmazonServiceCallback<DeleteVirtualMFADeviceRequest, DeleteVirtualMFADeviceResponse> callback, AsyncOptions options = null)
        {
            options = options == null?new AsyncOptions():options;
            var marshaller = new DeleteVirtualMFADeviceRequestMarshaller();
            var unmarshaller = DeleteVirtualMFADeviceResponseUnmarshaller.Instance;
            Action<AmazonWebServiceRequest, AmazonWebServiceResponse, Exception, AsyncOptions> callbackHelper = null;
            if(callback !=null )
                callbackHelper = (AmazonWebServiceRequest req, AmazonWebServiceResponse res, Exception ex, AsyncOptions ao) => { 
                    AmazonServiceResult<DeleteVirtualMFADeviceRequest,DeleteVirtualMFADeviceResponse> responseObject 
                            = new AmazonServiceResult<DeleteVirtualMFADeviceRequest,DeleteVirtualMFADeviceResponse>((DeleteVirtualMFADeviceRequest)req, (DeleteVirtualMFADeviceResponse)res, ex , ao.State);    
                        callback(responseObject); 
                };
            BeginInvoke<DeleteVirtualMFADeviceRequest>(request, marshaller, unmarshaller, options, callbackHelper);
        }

Same methods

AmazonIdentityManagementServiceClient::DeleteVirtualMFADeviceAsync ( DeleteVirtualMFADeviceRequest request, System cancellationToken = default(CancellationToken) ) : Task
AmazonIdentityManagementServiceClient