共用方式為


WebApplicationFactoryClientOptions.MaxAutomaticRedirections 屬性

定義

取得或設定呼叫 CreateClient(WebApplicationFactoryClientOptions) 所建立實例所應遵循的重新導向回應 HttpClient 數目上限。 預設為 7

public:
 property int MaxAutomaticRedirections { int get(); void set(int value); };
public int MaxAutomaticRedirections { get; set; }
member this.MaxAutomaticRedirections : int with get, set
Public Property MaxAutomaticRedirections As Integer

屬性值

適用於