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

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