1234567891011121314151617181920212223242526272829303132333435 |
- using System;
- using System.Collections.Generic;
- using System.Text;
- using COSXML.Common;
- namespace COSXML.Model.Object
- {
- /// <summary>
- /// 检索 对象 的 meta 信息数据
- /// <see href="https://cloud.tencent.com/document/product/436/7745"/>
- /// </summary>
- public sealed class HeadObjectRequest : ObjectRequest
- {
- public HeadObjectRequest(string bucket, string key)
- : base(bucket, key)
- {
- this.method = CosRequestMethod.HEAD;
- }
- /// <summary>
- /// 特定版本的对象
- /// </summary>
- /// <param name="versionId"></param>
- public void SetVersionId(string versionId)
- {
- if (versionId != null)
- {
- SetQueryParameter(CosRequestHeaderKey.VERSION_ID, versionId);
- }
- }
- }
- }
|