ForbidResult 建構函式
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
ForbidResult() |
初始化 ForbidResult的新實例。 |
ForbidResult(AuthenticationProperties) |
使用指定的 |
ForbidResult(AuthenticationProperties) |
使用指定的 |
ForbidResult(IList<String>) |
使用指定的驗證配置,初始化 ForbidResult 的新實例。 |
ForbidResult(String) |
使用指定的驗證配置,初始化 ForbidResult 的新實例。 |
ForbidResult(IList<String>, AuthenticationProperties) |
使用指定的驗證配置和 |
ForbidResult(IList<String>, AuthenticationProperties) |
使用指定的驗證配置和 |
ForbidResult(String, AuthenticationProperties) |
使用指定的驗證配置和 |
ForbidResult(String, AuthenticationProperties) |
使用指定的驗證配置和 |
ForbidResult()
ForbidResult(AuthenticationProperties)
使用指定的 properties
,初始化 ForbidResult 的新實例。
public:
ForbidResult(Microsoft::AspNetCore::Authentication::AuthenticationProperties ^ properties);
public ForbidResult (Microsoft.AspNetCore.Authentication.AuthenticationProperties properties);
public ForbidResult (Microsoft.AspNetCore.Authentication.AuthenticationProperties? properties);
new Microsoft.AspNetCore.Mvc.ForbidResult : Microsoft.AspNetCore.Authentication.AuthenticationProperties -> Microsoft.AspNetCore.Mvc.ForbidResult
Public Sub New (properties As AuthenticationProperties)
參數
- properties
- AuthenticationProperties
AuthenticationProperties 用來執行驗證挑戰。
適用於
ForbidResult(AuthenticationProperties)
使用指定的 properties
,初始化 ForbidResult 的新實例。
public:
ForbidResult(Microsoft::AspNetCore::Http::Authentication::AuthenticationProperties ^ properties);
public ForbidResult (Microsoft.AspNetCore.Http.Authentication.AuthenticationProperties properties);
new Microsoft.AspNetCore.Mvc.ForbidResult : Microsoft.AspNetCore.Http.Authentication.AuthenticationProperties -> Microsoft.AspNetCore.Mvc.ForbidResult
Public Sub New (properties As AuthenticationProperties)
參數
- properties
- AuthenticationProperties
AuthenticationProperties 用來執行驗證挑戰。
適用於
ForbidResult(IList<String>)
使用指定的驗證配置,初始化 ForbidResult 的新實例。
public:
ForbidResult(System::Collections::Generic::IList<System::String ^> ^ authenticationSchemes);
public ForbidResult (System.Collections.Generic.IList<string> authenticationSchemes);
new Microsoft.AspNetCore.Mvc.ForbidResult : System.Collections.Generic.IList<string> -> Microsoft.AspNetCore.Mvc.ForbidResult
Public Sub New (authenticationSchemes As IList(Of String))
參數
適用於
ForbidResult(String)
使用指定的驗證配置,初始化 ForbidResult 的新實例。
public:
ForbidResult(System::String ^ authenticationScheme);
public ForbidResult (string authenticationScheme);
new Microsoft.AspNetCore.Mvc.ForbidResult : string -> Microsoft.AspNetCore.Mvc.ForbidResult
Public Sub New (authenticationScheme As String)
參數
- authenticationScheme
- String
要挑戰的驗證配置。
適用於
ForbidResult(IList<String>, AuthenticationProperties)
使用指定的驗證配置和 properties
,初始化 ForbidResult 的新實例。
public:
ForbidResult(System::Collections::Generic::IList<System::String ^> ^ authenticationSchemes, Microsoft::AspNetCore::Authentication::AuthenticationProperties ^ properties);
public ForbidResult (System.Collections.Generic.IList<string> authenticationSchemes, Microsoft.AspNetCore.Authentication.AuthenticationProperties properties);
public ForbidResult (System.Collections.Generic.IList<string> authenticationSchemes, Microsoft.AspNetCore.Authentication.AuthenticationProperties? properties);
new Microsoft.AspNetCore.Mvc.ForbidResult : System.Collections.Generic.IList<string> * Microsoft.AspNetCore.Authentication.AuthenticationProperties -> Microsoft.AspNetCore.Mvc.ForbidResult
Public Sub New (authenticationSchemes As IList(Of String), properties As AuthenticationProperties)
參數
- properties
- AuthenticationProperties
AuthenticationProperties 用來執行驗證挑戰。
適用於
ForbidResult(IList<String>, AuthenticationProperties)
使用指定的驗證配置和 properties
,初始化 ForbidResult 的新實例。
public:
ForbidResult(System::Collections::Generic::IList<System::String ^> ^ authenticationSchemes, Microsoft::AspNetCore::Http::Authentication::AuthenticationProperties ^ properties);
public ForbidResult (System.Collections.Generic.IList<string> authenticationSchemes, Microsoft.AspNetCore.Http.Authentication.AuthenticationProperties properties);
new Microsoft.AspNetCore.Mvc.ForbidResult : System.Collections.Generic.IList<string> * Microsoft.AspNetCore.Http.Authentication.AuthenticationProperties -> Microsoft.AspNetCore.Mvc.ForbidResult
Public Sub New (authenticationSchemes As IList(Of String), properties As AuthenticationProperties)
參數
- properties
- AuthenticationProperties
AuthenticationProperties 用來執行驗證挑戰。
適用於
ForbidResult(String, AuthenticationProperties)
使用指定的驗證配置和 properties
,初始化 ForbidResult 的新實例。
public:
ForbidResult(System::String ^ authenticationScheme, Microsoft::AspNetCore::Authentication::AuthenticationProperties ^ properties);
public ForbidResult (string authenticationScheme, Microsoft.AspNetCore.Authentication.AuthenticationProperties properties);
public ForbidResult (string authenticationScheme, Microsoft.AspNetCore.Authentication.AuthenticationProperties? properties);
new Microsoft.AspNetCore.Mvc.ForbidResult : string * Microsoft.AspNetCore.Authentication.AuthenticationProperties -> Microsoft.AspNetCore.Mvc.ForbidResult
Public Sub New (authenticationScheme As String, properties As AuthenticationProperties)
參數
- authenticationScheme
- String
要挑戰的驗證配置。
- properties
- AuthenticationProperties
AuthenticationProperties 用來執行驗證挑戰。
適用於
ForbidResult(String, AuthenticationProperties)
使用指定的驗證配置和 properties
,初始化 ForbidResult 的新實例。
public:
ForbidResult(System::String ^ authenticationScheme, Microsoft::AspNetCore::Http::Authentication::AuthenticationProperties ^ properties);
public ForbidResult (string authenticationScheme, Microsoft.AspNetCore.Http.Authentication.AuthenticationProperties properties);
new Microsoft.AspNetCore.Mvc.ForbidResult : string * Microsoft.AspNetCore.Http.Authentication.AuthenticationProperties -> Microsoft.AspNetCore.Mvc.ForbidResult
Public Sub New (authenticationScheme As String, properties As AuthenticationProperties)
參數
- authenticationScheme
- String
要挑戰的驗證配置。
- properties
- AuthenticationProperties
AuthenticationProperties 用來執行驗證挑戰。