BlobRequestOptions.DisableContentMD5Validation Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
意見反應
https://aka.ms/ContentUserFeedback。
即將登場:在 2024 年,我們將逐步淘汰 GitHub 問題作為內容的意見反應機制,並將它取代為新的意見反應系統。 如需詳細資訊,請參閱:提交並檢視相關的意見反應