HttpRetryStrategyOptions.ShouldRetryAfterHeader 屬性
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
會取得或設定一個值,指示是否使用 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 ,重試策略延遲會根據設定的選項產生延遲。