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

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

Inheritance Hierarchy
SystemObject
  Aliyun.OSSObjectMetadata

Namespace: Aliyun.OSS
Assembly: Aliyun.OSS (in Aliyun.OSS.dll) Version: 2.5.1.0 (2.5.1)
Syntax
public class ObjectMetadata

The ObjectMetadata type exposes the following members.

Constructors
  NameDescription
Public methodObjectMetadata
初始化一个新的ObjectMetadata实例。
Top
Methods
  NameDescription
Public methodAddHeader
增加HTTP header信息
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位的Aes加密算法
Top
Properties
  NameDescription
Public propertyCacheControl
获取或设置Cache-Control请求头,表示用户指定的HTTP请求/回复链的缓存行为。
Public propertyContentDisposition
获取Content-Disposition请求头,表示MIME用户代理如何显示附加的文件。
Public propertyContentEncoding
获取或设置Content-Encoding请求头,表示Object内容的编码方式。
Public propertyContentLength
获取Content-Length请求头,表示Object内容的大小。
Public propertyContentMd5
获取或设置一个值表示与Object相关的hex编码的128位MD5摘要。
Public propertyContentType
获取或设置Content-Type请求头,表示Object内容的类型,为标准的MIME类型。
Public propertyETag
获取或者设置ETAG值,如果要设置Content-Md5值,请使用Content-Md5属性。
Public propertyExpirationTime
获取Expires请求头,表示Object的过期时间。
Public propertyHttpMetadata
获取HTTP标准属性(HTTP Headers)。
Public propertyLastModified
获取Last-Modified请求头的值,表示Object最后一次修改的时间。
Public propertyObjectType
获取文件类型[Normal/Appendable]
Public propertyServerSideEncryption
获取和设置服务器端加密算法
Public propertyUserMetadata
获取用户自定义的元数据。
Top
See Also