UploadPartResult.cs 732 B

1234567891011121314151617181920212223242526272829303132
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Text;
  4. using System.IO;
  5. namespace COSXML.Model.Object
  6. {
  7. /// <summary>
  8. /// 分片上传返回的结果
  9. /// <see href="https://cloud.tencent.com/document/product/436/7750"/>
  10. /// </summary>
  11. public sealed class UploadPartResult : CosResult
  12. {
  13. /// <summary>
  14. /// 分片块的eTag
  15. /// </summary>
  16. public string eTag;
  17. internal override void InternalParseResponseHeaders()
  18. {
  19. List<string> values;
  20. this.responseHeaders.TryGetValue("ETag", out values);
  21. if (values != null && values.Count > 0)
  22. {
  23. eTag = values[0];
  24. }
  25. }
  26. }
  27. }