ObjectMetadataUserMetadata Property |
Gets the user's custom metadata.
Namespace: Aliyun.OSSAssembly: Aliyun.OSS (in Aliyun.OSS.dll) Version: 2.8.0.0 (2.8.0)
Syntax public IDictionary<string, string> UserMetadata { get; }
Public ReadOnly Property UserMetadata As IDictionary(Of String, String)
Get
public:
property IDictionary<String^, String^>^ UserMetadata {
IDictionary<String^, String^>^ get ();
}
member UserMetadata : IDictionary<string, string> with get
Property Value
Type:
IDictionaryString,
StringRemarks
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