AbortMultipartUploadAsync() public method

Initiates the asynchronous execution of the AbortMultipartUpload operation.
public AbortMultipartUploadAsync ( AbortMultipartUploadRequest request, System cancellationToken = default(CancellationToken) ) : Task
request Amazon.S3.Model.AbortMultipartUploadRequest Container for the necessary parameters to execute the AbortMultipartUpload operation.
cancellationToken System /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. ///
return Task
 public async Task AbortUploadFile(BasicAWSCredentials credentials, string bucketname, string key, string uploadid)
 {
     var s3Client = new AmazonS3Client(credentials, RegionEndpoint.USEast1);
     await s3Client.AbortMultipartUploadAsync(new AbortMultipartUploadRequest
     {
         BucketName = bucketname,
         Key = key,
         UploadId = uploadid
     });
 }