BlobRequestOptions.MaximumExecutionTime 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 the maximum execution time across all potential retries for the request.
public TimeSpan? MaximumExecutionTime { get; set; }
member this.MaximumExecutionTime : Nullable<TimeSpan> with get, set
Public Property MaximumExecutionTime As Nullable(Of TimeSpan)
Property Value
A TimeSpan representing the maximum execution time for retries for the request.
Implements
Examples
BlobRequestOptions timeoutRequestOptions = new BlobRequestOptions()
{
// Each REST operation will timeout after 5 seconds.
ServerTimeout = TimeSpan.FromSeconds(5),
// Allot 30 seconds for this API call, including retries
MaximumExecutionTime = TimeSpan.FromSeconds(30)
};
byteCount = blob.DownloadToByteArray(destinationArray, index: 0, accessCondition: null, options: timeoutRequestOptions);
Remarks
The maximum execution time is the time allotted for a single API call. If the total amount of time spent in the API - across all REST requests, retries, etc - exceeds this value, the client will timeout. This value is only tracked on the client, it is not sent to the service.
Applies to
意見反應
https://aka.ms/ContentUserFeedback。
即將登場:在 2024 年,我們將逐步淘汰 GitHub 問題作為內容的意見反應機制,並將它取代為新的意見反應系統。 如需詳細資訊,請參閱:提交並檢視相關的意見反應