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.5.1.0 (2.5.1)
Syntax
public class Bucket

The Bucket type exposes the following members.

Methods
  NameDescription
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
返回该对象的字符串表示。
(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