Share via


HttpClientHandler.MaxAutomaticRedirections Properti

Definisi

Mendapatkan atau mengatur jumlah maksimum pengalihan yang diikuti oleh handler.

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

Nilai Properti

Jumlah maksimum respons pengalihan yang diikuti oleh handler. Nilai defaultnya adalah 50.

Atribut

Keterangan

Properti MaxAutomaticRedirections menetapkan jumlah maksimum pengalihan untuk diikuti permintaan jika AllowAutoRedirect properti adalah true.

Berlaku untuk