Click or drag to resize
Bucket Class
Bucket is the OSS namespace, which could be thought as storage space.
Inheritance Hierarchy
SystemObject
  Aliyun.OSSBucket

Namespace: Aliyun.OSS
Assembly: Aliyun.OSS (in Aliyun.OSS.dll) Version: 2.8.0.0 (2.8.0)
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
Returns the bucket's serialization information in string.
(Overrides ObjectToString.)
Top
Properties
  NameDescription
Public propertyCreationDate
Bucket creation time getter/setter
Public propertyLocation
Bucket location getter/setter
Public propertyName
Bucket name getter/setter
Public propertyOwner
Bucket Owner getter/setter
Top
Remarks

Bucket is globally unique across the whole OSS and is immutable. Every object must be stored at one and only one bucket. An application, such as picture sharing website, could have one or more bucket. And each account could only create up to 10 buckets. But in every bucket, there's no limit in terms of data size and object count.

Bucket naming rules

  • Can only have lowercase letter, number or dash (-)
  • Can only start with lowercase letter or number
  • The length must be between 3 and 63

See Also