The GetObjectResponse contains any header or metadata returned by S3. GetObjectResponse's contain resources that need to be disposed. The recommended way for handling GetObjectResponse objects is wrapping them in using clauses, like so:
CopyC#
using (GetObjectResponse response = s3Client.GetObject(request))
{
    ...
}
This will ensure that any network resources, file streams and web headers have been returned back to the system for future use.

Namespace: Amazon.S3.Model
Assembly: AWSSDK (in AWSSDK.dll) Version: 1.4.10.0 (1.4.10.0)

Syntax

         
 C#  Visual Basic  Visual C++ 
public class GetObjectResponse : S3Response
Public Class GetObjectResponse _
	Inherits S3Response
public ref class GetObjectResponse : public S3Response

Members

               
 All Members  Constructors   Properties   Methods   Events  
 Public

 Protected
 Instance

 Static 
 Declared

 Inherited
 XNA Framework Only 

 .NET Compact Framework Only 

 MemberDescription
GetObjectResponse()()()()
Initializes a new instance of the GetObjectResponse class
AmazonId2
Gets and sets the AmzId2 property.
(Inherited from S3Response.)
BucketName
Gets and sets the BucketName property.
ContentLength
Gets and sets the ContentLength property.
ContentType
Gets and sets the ContentType property.
Dispose()()()()
Disposes of all managed and unmanaged resources.
(Inherited from S3Response.)
Equals(Object)
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
ETag
Gets and sets the ETag property.
Expiration
Gets and sets the Expiration property. Specifies the expiration date for the object and the rule governing the expiration. Is null if expiration is not applicable.
GetHashCode()()()()
Serves as a hash function for a particular type.
(Inherited from Object.)
GetType()()()()
Gets the Type of the current instance.
(Inherited from Object.)
Headers
Gets and sets the Headers property.
(Overrides S3Response..::..Headers.)
Key
Gets and sets the Key property.
Metadata
Gets and sets the Metadata property.
(Inherited from S3Response.)
RequestId
Gets and sets the RequestId property.
(Inherited from S3Response.)
ResponseStream
Gets and sets the ResponseStream property. This property only has a valid value for GetObjectResponses. In order to use this stream without leaking the underlying resource, please wrap access to the stream within a using block.
CopyC#
(Inherited from S3Response.)
ResponseXml
Gets and sets the ResponseXml property. This is the original xml response received from S3
(Inherited from S3Response.)
ServerSideEncryptionMethod
Gets and sets the ServerSideEncryptionMethod property. Specifies the encryption used on the server to store the content. Default is None.
ToString()()()()
String Representation of this object. Overrides Object.ToString()
(Inherited from S3Response.)
VersionId
Gets and sets the VersionId property. This is the version-id of the S3 object
WithSubscriber(EventHandler<(Of <<'(WriteObjectProgressArgs>)>>))
The "handler" will be notified every time a put object progress event is raised.
WriteObjectProgressEvent
The event for Write Object progress notifications. All subscribers will be notified when a new progress event is raised.
WriteResponseStreamToFile(String)
Writes the content of the ResponseStream a file indicated by the filePath argument.
WriteResponseStreamToFile(String, Boolean)
Writes the content of the ResponseStream a file indicated by the filePath argument.

Inheritance Hierarchy

System..::..Object
  Amazon.S3.Model..::..S3Response
    Amazon.S3.Model..::..GetObjectResponse

See Also