DeleteObjectResponse Class

.NET Framework 4.5
 
 
 
Did this page help you?  Yes  No   Tell us about it...
Returns information about the DeleteObject response and response metadata.

Inheritance Hierarchy

System.Object
  Amazon.Runtime.AmazonWebServiceResponse
    Amazon.S3.Model.DeleteObjectResponse

Namespace: Amazon.S3.Model
Assembly: AWSSDK.dll
Version: 2.0.0.3

Syntax

C#
public class DeleteObjectResponse : AmazonWebServiceResponse

The DeleteObjectResponse type exposes the following members

Constructors

  Name Description
Public Method DeleteObjectResponse()

Properties

  Name Description
Public Property ContentLength Returns the content length of the HTTP response.
Public Property DeleteMarker Specifies whether the versioned object that was permanently deleted was (true) or was not (false) a delete marker.
Public Property HttpStatusCode Returns the status code of the HTTP response.
Public Property ResponseMetadata Contains additional information about the request, such as the Request Id.
Public Property VersionId Returns the version ID of the delete marker created as a result of the DELETE operation.

Examples

This example shows how to delete an object.

DeleteObject sample


// Create a client
AmazonS3Client client = new AmazonS3Client();

// Create a DeleteObject request
DeleteObjectRequest request = new DeleteObjectRequest
{
    BucketName = "SampleBucket",
    Key = "Item1"
};

// Issue request
client.DeleteObject(request);

                

Version Information

.NET Framework:
Supported in: 4.5, 4.0, 3.5

.NET for Windows Store apps:
Supported in: Windows 8

.NET for Windows Phone:
Supported in: Window Phone 8