Click or drag to resize
ObjectMetadata Class
OSS object's metadata, which is the collection of 'key,value' pair.

It includes user's custom metadata, as well as standard HTTP headers such as Content-Length, ETag, etc.

Inheritance Hierarchy
SystemObject
  Aliyun.OSSObjectMetadata

Namespace: Aliyun.OSS
Assembly: Aliyun.OSS (in Aliyun.OSS.dll) Version: 2.8.0.0 (2.8.0)
Syntax
public class ObjectMetadata

The ObjectMetadata type exposes the following members.

Constructors
  NameDescription
Public methodObjectMetadata
Creates a new instance of ObjectMetadata.
Top
Methods
  NameDescription
Public methodAddHeader
Adds one HTTP header and its value.
Public methodEquals
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Protected methodFinalize
Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetHashCode
Serves as a hash function for a particular type.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodToString
Returns a String that represents the current Object.
(Inherited from Object.)
Top
Fields
  NameDescription
Public fieldStatic memberAes256ServerSideEncryption
256 bit ASE encryption algorithm.
Top
Properties
  NameDescription
Public propertyCacheControl
Gets or sets the value of HTTP Cache-Control header.
Public propertyContentDisposition
Gets or sets the value of HTTP Content-Disposition header.
Public propertyContentEncoding
Gets or sets the content encoding of the object.
Public propertyContentLength
Gets or sets the content length of the object.
Public propertyContentMd5
Gets or sets the HTTP Content-MD5 header, which is the MD5 summary in Hex string of the object.
Public propertyContentType
Gets or sets the content type of the objeft. It's the standard MIME type.
Public propertyCrc64
Gets or sets the crc64.
Public propertyETag
Gets or sets the value of HTTP ETag header. Note that this is set by OSS server. To set the Content-MD5 value, use HTTP COntent-MD5 header instead.
Public propertyExpirationTime
Gets or sets the expiration time of the object.
Public propertyHttpMetadata
Gets HTTP standard headers and their values.
Public propertyLastModified
Gets or sets the last modified timestamp of the OSS object.
Public propertyObjectType
Gets the object type (Normal or Appendable)
Public propertyServerSideEncryption
Gets or sets the server side encryption algorithm. Only AES256 is support for now.
Public propertyUserMetadata
Gets the user's custom metadata.
Top
See Also