語言

HttpRetryStrategyOptions.ShouldRetryAfterHeader 屬性

定義

會取得或設定一個值,指示是否使用 Retry-After 該標頭作為重試延遲。

public:
 property bool ShouldRetryAfterHeader { bool get(); void set(bool value); };
public bool ShouldRetryAfterHeader { get; set; }
member this.ShouldRetryAfterHeader : bool with get, set
Public Property ShouldRetryAfterHeader As Boolean

屬性值

預設為 true。

備註

若屬性設定為 , true 則產生器會根據 Retry-After 標頭規則解析延遲,否則會返回 null ,重試策略延遲會根據設定的選項產生延遲。

適用於