共用方式為


HttpClientHandler.MaxAutomaticRedirections 屬性

定義

接收或設定處理器所遵循的最大重定向次數。

public:
 property int MaxAutomaticRedirections { int get(); void set(int value); };
public int MaxAutomaticRedirections { get; set; }
[System.Runtime.Versioning.UnsupportedOSPlatform("browser")]
public int MaxAutomaticRedirections { get; set; }
member this.MaxAutomaticRedirections : int with get, set
[<System.Runtime.Versioning.UnsupportedOSPlatform("browser")>]
member this.MaxAutomaticRedirections : int with get, set
Public Property MaxAutomaticRedirections As Integer

屬性值

處理者遵循的最大重定向回應數。 預設值為 50。

屬性

備註

MaxAutomaticRedirections若屬性AllowAutoRedirecttrue,則設定請求可遵循的最大重定向次數。

適用於