AWS services or capabilities described in AWS Documentation may vary by region/location. Click Getting Started with Amazon AWS to see specific differences applicable to the China (Beijing) Region.
Represents an S3 Object. Contains all attributes that an S3 Object has. For more information about S3 Objects refer: http://docs.amazonwebservices.com/AmazonS3/latest/UsingObjects.html
Namespace: Amazon.S3.Model
Assembly: AWSSDK.S3.dll
Version: 3.x.y.z
public class S3Object
The S3Object type exposes the following members
Name | Description | |
---|---|---|
![]() |
S3Object() |
Name | Type | Description | |
---|---|---|---|
![]() |
BucketName | System.String |
The name of the bucket containing this object. |
![]() |
ChecksumAlgorithm | System.Collections.Generic.List<System.String> |
Gets and sets the property ChecksumAlgorithm. The algorithm that was used to create a checksum of the object. Starting with version 4 of the SDK this property will default to null. If no data for this property is returned from the service the property will also be null. This was changed to improve performance and allow the SDK and caller to distinguish between a property not set or a property being empty to clear out a value. To retain the previous SDK behavior set the AWSConfigs.InitializeCollections static property to true. |
![]() |
ChecksumType | Amazon.S3.ChecksumType |
Gets and sets the property ChecksumType. The checksum type that is used to calculate the object’s checksum value. For more information, see Checking object integrity in the Amazon S3 User Guide. |
![]() |
ETag | System.String |
Gets and sets the property ETag. The entity tag is a hash of the object. The ETag reflects changes only to the contents of an object, not its metadata. The ETag may or may not be an MD5 digest of the object data. Whether or not it is depends on how the object was created and how it is encrypted as described below:
Directory buckets - MD5 is not supported by directory buckets. |
![]() |
Key | System.String |
Gets and sets the property Key. The name that you assign to an object. You use the object key to retrieve the object. |
![]() |
LastModified | System.Nullable<System.DateTime> |
Gets and sets the property LastModified. Creation date of the object. |
![]() |
Owner | Amazon.S3.Model.Owner |
Gets and sets the property Owner. The owner of the object Directory buckets - The bucket owner is returned as the object owner. |
![]() |
RestoreStatus | Amazon.S3.Model.RestoreStatus |
Gets and sets the property RestoreStatus. Specifies the restoration status of an object. Objects in certain storage classes must be restored before they can be retrieved. For more information about these storage classes and how to work with archived objects, see Working with archived objects in the Amazon S3 User Guide.
This functionality is not supported for directory buckets. Directory buckets only
support |
![]() |
Size | System.Nullable<System.Int64> |
Gets and sets the property Size. Size in bytes of the object |
![]() |
StorageClass | Amazon.S3.S3StorageClass |
Gets and sets the property StorageClass. The class of storage used to store the object. Directory buckets - Directory buckets only support |
.NET:
Supported in: 8.0 and newer, Core 3.1
.NET Standard:
Supported in: 2.0
.NET Framework:
Supported in: 4.7.2 and newer