Click or drag to resize
ObjectMetadata Class
OSS中Object的元数据。

包含了用户自定义的元数据,也包含了OSS发送的标准HTTP头(如Content-Length, ETag等)。

Inheritance Hierarchy
SystemObject
  Aliyun.OpenServices.OpenStorageServiceObjectMetadata

Namespace: Aliyun.OpenServices.OpenStorageService
Assembly: Aliyun.OSS (in Aliyun.OSS.dll) Version: 1.0.5626.29242
Syntax
public class ObjectMetadata

The ObjectMetadata type exposes the following members.

Constructors
  NameDescription
Public methodObjectMetadata
初始化一个新的ObjectMetadata实例。
Top
Methods
  NameDescription
Public methodAddHeader
Public methodEquals
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it 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
Properties
  NameDescription
Public propertyCacheControl
获取或设置Cache-Control请求头,表示用户指定的HTTP请求/回复链的缓存行为。
Public propertyContentDisposition
获取Content-Disposition请求头,表示MIME用户代理如何显示附加的文件。
Public propertyContentEncoding
获取或设置Content-Encoding请求头,表示Object内容的编码方式。
Public propertyContentLength
获取Content-Length请求头,表示Object内容的大小。
Public propertyContentType
获取或设置Content-Type请求头,表示Object内容的类型,为标准的MIME类型。
Public propertyETag
获取或设置一个值表示与Object相关的hex编码的128位MD5摘要。
Public propertyExpirationTime
获取Expires请求头,表示Object的过期时间。 如果Object没有定义过期时间,则返回null。
Public propertyLastModified
获取Last-Modified请求头的值,表示Object最后一次修改的时间。
Public propertyServerSideEncryption
Public propertyUserMetadata
获取用户自定义的元数据。
Top
See Also