您现在访问的是微软AZURE全球版技术文档网站,若需要访问由世纪互联运营的MICROSOFT AZURE中国区技术文档网站,请访问 https://docs.azure.cn.

BlobRequestOptions.DisableContentMD5Validation Property

Definition

Gets or sets a value to indicate that MD5 validation will be disabled when downloading blobs.

public bool? DisableContentMD5Validation { get; set; }
member this.DisableContentMD5Validation : Nullable<bool> with get, set
Public Property DisableContentMD5Validation As Nullable(Of Boolean)

Property Value

Nullable<Boolean>

Use true to disable MD5 validation; false to enable MD5 validation. Default is false.

Examples


// Instruct the Storage Client to skip validating the MD5 hash of the content,
BlobRequestOptions optionsWithDisableContentMD5Validation = new BlobRequestOptions() { DisableContentMD5Validation = true };

using (targetStream = new MemoryStream())
{
    testBlob.DownloadToStream(targetStream, accessCondition: null, options: optionsWithDisableContentMD5Validation);
}

Remarks

When downloading a blob, if the value already exists on the blob, the Storage service will include the MD5 hash of the entire blob as a header. This option controls whether or not the Storage Client will validate that MD5 hash on download. See BlobRequestOptions.ChecksumOptions.StoreBlobContentMD5 for more details.

Applies to