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。

屬性

備註

如果 AllowAutoRedirect 屬性為 true,屬性MaxAutomaticRedirections會設定要求所遵循的重新導向數目上限。

適用於