Click or drag to resize
Bucket Class
Bucket是OSS上的命名空间,可以理解为存储空间
Inheritance Hierarchy
SystemObject
  Aliyun.OSSBucket

Namespace: Aliyun.OSS
Assembly: Aliyun.OSS (in Aliyun.OSS.dll) Version: 2.2.0.0 (2.2.0)
Syntax
C#
public class Bucket

The Bucket type exposes the following members.

Methods
  NameDescription
Public methodEquals
确定指定的 Object 是否等于当前的 Object
(Inherited from Object.)
Protected methodFinalize
允许 Object 在“垃圾回收”回收 Object 之前尝试释放资源并执行其他清理操作。
(Inherited from Object.)
Public methodGetHashCode
用作特定类型的哈希函数。
(Inherited from Object.)
Public methodGetType
获取当前实例的 Type
(Inherited from Object.)
Protected methodMemberwiseClone
创建当前 Object 的浅表副本。
(Inherited from Object.)
Public methodToString
返回该对象的字符串表示。
(Overrides ObjectToString.)
Top
Properties
  NameDescription
Public propertyCreationDate
获取/设置Bucket的创建时间。
Public propertyLocation
获取/设置Bucket的Location。
Public propertyName
获取/设置Bucket的名称。
Public propertyOwner
获取/设置Bucket的Owner
Top
Remarks

Bucket名在整个 OSS 中具有全局唯一性,且不能修改;存储在OSS上的每个Object必须都包含在某个Bucket中。 一个应用,例如图片分享网站,可以对应一个或多个 Bucket。一个用户最多可创建 10 个Bucket, 但每个Bucket 中存放的Object的数量和大小总和没有限制,用户不需要考虑数据的可扩展性。

Bucket 命名规范

  • 只能包括小写字母,数字和短横线(-)
  • 必须以小写字母或者数字开头
  • 长度必须在 3-63 字节之间

See Also