Returns information about a specified object.
Declaration Syntax
C# |
GetObjectMetadataResponse GetObjectMetadata( GetObjectMetadataRequest request )
Parameters
- request (GetObjectMetadataRequest)
- The GetObjectMetadataRequest that defines the parameters of the operation.
Return Value
Returns a GetObjectMetadataResponse from S3.
Remarks
Retrieves information about a specific object or object size, without actually fetching the object itself.
This is useful if you're only interested in the object metadata, and don't want to waste bandwidth on the object data.
The response is identical to the GetObject response, except that there is no response body.
Exceptions
Exception | Condition |
---|---|
ArgumentNullException | |
WebException | |
AmazonS3Exception |