共用方式為


WebApplicationFactoryClientOptions.AllowAutoRedirect 屬性

定義

取得或設定呼叫 所 CreateClient(WebApplicationFactoryClientOptions) 建立的實例是否 HttpClient 應該自動遵循重新導向回應。 預設為 true

public:
 property bool AllowAutoRedirect { bool get(); void set(bool value); };
public bool AllowAutoRedirect { get; set; }
member this.AllowAutoRedirect : bool with get, set
Public Property AllowAutoRedirect As Boolean

屬性值

適用於