using System; using System.Collections.Generic; using System.Text; using COSXML.Common; namespace COSXML.Model.Object { /// /// 检索 对象 的 meta 信息数据 /// /// public sealed class HeadObjectRequest : ObjectRequest { public HeadObjectRequest(string bucket, string key) : base(bucket, key) { this.method = CosRequestMethod.HEAD; } /// /// 特定版本的对象 /// /// public void SetVersionId(string versionId) { if (versionId != null) { SetQueryParameter(CosRequestHeaderKey.VERSION_ID, versionId); } } } }