Click or drag to resize
ObjectMetadataUserMetadata Property
Gets the user's custom metadata.

Namespace: Aliyun.OSS
Assembly: Aliyun.OSS (in Aliyun.OSS.dll) Version: 2.8.0.0 (2.8.0)
Syntax
public IDictionary<string, string> UserMetadata { get; }

Property Value

Type: IDictionaryString, String
Remarks
In OSS server side, it will add "x-oss-meta-" as the prefix for the keys of custom metadata. However, here the key in UserMetadata should not include "x-oss-meta-". And the key is case insensitive--in fact all the keys returned from server will be in lowercase anyway. For example, for a key MyUserMeta, it will be myusermeta from the result of GetObjectMetadata().
See Also