AmazonS3Client.GetObjectMetadata Method (GetObjectMetadataRequest)

.NET Framework 3.5
 
 
 
Did this page help you?  Yes  No   Tell us about it...
Returns information about a specified object.

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

Syntax

C#
public virtual GetObjectMetadataResponse GetObjectMetadata(
         GetObjectMetadataRequest getObjectMetadataRequest
)

Parameters

getObjectMetadataRequest
Type: Amazon.S3.Model.GetObjectMetadataRequest

Container for the necessary parameters to execute the GetObjectMetadata service method on AmazonS3.

Return Value
Type: Amazon.S3.Model.GetObjectMetadataResponse
The response from the HeadObject service method, as returned by AmazonS3.

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.

Version Information

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