AuthenticationSchemeOptions.ForwardForbid 屬性
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
如果設定,這會指定此配置應該轉送 ForbidAsync 呼叫的目標配置。 例如 CoNtext.ForbidAsync (「ThisScheme」) = > CoNtext.ForbidAsync (「ForwardForbidValue」) ;將目標設定為目前的配置,以停用轉送並允許正常處理。
public:
property System::String ^ ForwardForbid { System::String ^ get(); void set(System::String ^ value); };
C#
public string ForwardForbid { get; set; }
C#
public string? ForwardForbid { get; set; }
member this.ForwardForbid : string with get, set
Public Property ForwardForbid As String
產品 | 版本 |
---|---|
ASP.NET Core | 2.1, 2.2, 3.0, 3.1, 5.0, 6.0, 7.0, 8.0, 9.0 |