using System; using System.Collections.Generic; using System.Text; using COSXML.Common; namespace COSXML.Model.Object { /// /// 删除对象 /// /// public sealed class DeleteObjectRequest : ObjectRequest { public DeleteObjectRequest(string bucket, string key) : base(bucket, key) { this.method = CosRequestMethod.DELETE; } /// /// 删除指定版本的对象 /// /// public void SetVersionId(string versionId) { if (versionId != null) { SetQueryParameter(CosRequestHeaderKey.VERSION_ID, versionId); } } } }