Share via


ControllerBase.Challenge 方法

定義

多載

Challenge(AuthenticationProperties, String[])

ChallengeResult使用指定的驗證配置和 properties 建立 。

Challenge()

建立 ChallengeResult

Challenge(AuthenticationProperties)

使用指定的 properties 建立 ChallengeResult

Challenge(AuthenticationProperties)

使用指定的 properties 建立 ChallengeResult

Challenge(String[])

使用指定的驗證配置建立 ChallengeResult

Challenge(AuthenticationProperties, String[])

ChallengeResult使用指定的驗證配置和 properties 建立 。

Challenge(AuthenticationProperties, String[])

ChallengeResult使用指定的驗證配置和 properties 建立 。

public:
 virtual Microsoft::AspNetCore::Mvc::ChallengeResult ^ Challenge(Microsoft::AspNetCore::Http::Authentication::AuthenticationProperties ^ properties, ... cli::array <System::String ^> ^ authenticationSchemes);
[Microsoft.AspNetCore.Mvc.NonAction]
public virtual Microsoft.AspNetCore.Mvc.ChallengeResult Challenge (Microsoft.AspNetCore.Http.Authentication.AuthenticationProperties properties, params string[] authenticationSchemes);
[<Microsoft.AspNetCore.Mvc.NonAction>]
abstract member Challenge : Microsoft.AspNetCore.Http.Authentication.AuthenticationProperties * string[] -> Microsoft.AspNetCore.Mvc.ChallengeResult
override this.Challenge : Microsoft.AspNetCore.Http.Authentication.AuthenticationProperties * string[] -> Microsoft.AspNetCore.Mvc.ChallengeResult
Public Overridable Function Challenge (properties As AuthenticationProperties, ParamArray authenticationSchemes As String()) As ChallengeResult

參數

properties
AuthenticationProperties

AuthenticationProperties 用來執行驗證挑戰。

authenticationSchemes
String[]

要挑戰的驗證配置。

傳回

為回應建立 ChallengeResult 的 。

屬性

適用於

Challenge()

來源:
ControllerBase.cs
來源:
ControllerBase.cs

建立 ChallengeResult

public:
 virtual Microsoft::AspNetCore::Mvc::ChallengeResult ^ Challenge();
[Microsoft.AspNetCore.Mvc.NonAction]
public virtual Microsoft.AspNetCore.Mvc.ChallengeResult Challenge ();
[<Microsoft.AspNetCore.Mvc.NonAction>]
abstract member Challenge : unit -> Microsoft.AspNetCore.Mvc.ChallengeResult
override this.Challenge : unit -> Microsoft.AspNetCore.Mvc.ChallengeResult
Public Overridable Function Challenge () As ChallengeResult

傳回

為回應建立 ChallengeResult 的 。

屬性

備註

此方法的行為取決於 IAuthenticationService 使用中的 。 Status401UnauthorizedStatus403Forbidden 是可能的狀態結果。

適用於

Challenge(AuthenticationProperties)

來源:
ControllerBase.cs
來源:
ControllerBase.cs

使用指定的 properties 建立 ChallengeResult

public:
 virtual Microsoft::AspNetCore::Mvc::ChallengeResult ^ Challenge(Microsoft::AspNetCore::Authentication::AuthenticationProperties ^ properties);
[Microsoft.AspNetCore.Mvc.NonAction]
public virtual Microsoft.AspNetCore.Mvc.ChallengeResult Challenge (Microsoft.AspNetCore.Authentication.AuthenticationProperties properties);
[<Microsoft.AspNetCore.Mvc.NonAction>]
abstract member Challenge : Microsoft.AspNetCore.Authentication.AuthenticationProperties -> Microsoft.AspNetCore.Mvc.ChallengeResult
override this.Challenge : Microsoft.AspNetCore.Authentication.AuthenticationProperties -> Microsoft.AspNetCore.Mvc.ChallengeResult
Public Overridable Function Challenge (properties As AuthenticationProperties) As ChallengeResult

參數

properties
AuthenticationProperties

AuthenticationProperties 用來執行驗證挑戰。

傳回

為回應建立 ChallengeResult 的 。

屬性

備註

此方法的行為取決於 IAuthenticationService 使用中的 。 Status401UnauthorizedStatus403Forbidden 是可能的狀態結果。

適用於

Challenge(AuthenticationProperties)

使用指定的 properties 建立 ChallengeResult

public:
 virtual Microsoft::AspNetCore::Mvc::ChallengeResult ^ Challenge(Microsoft::AspNetCore::Http::Authentication::AuthenticationProperties ^ properties);
[Microsoft.AspNetCore.Mvc.NonAction]
public virtual Microsoft.AspNetCore.Mvc.ChallengeResult Challenge (Microsoft.AspNetCore.Http.Authentication.AuthenticationProperties properties);
[<Microsoft.AspNetCore.Mvc.NonAction>]
abstract member Challenge : Microsoft.AspNetCore.Http.Authentication.AuthenticationProperties -> Microsoft.AspNetCore.Mvc.ChallengeResult
override this.Challenge : Microsoft.AspNetCore.Http.Authentication.AuthenticationProperties -> Microsoft.AspNetCore.Mvc.ChallengeResult
Public Overridable Function Challenge (properties As AuthenticationProperties) As ChallengeResult

參數

properties
AuthenticationProperties

AuthenticationProperties 用來執行驗證挑戰。

傳回

為回應建立 ChallengeResult 的 。

屬性

適用於

Challenge(String[])

來源:
ControllerBase.cs
來源:
ControllerBase.cs

使用指定的驗證配置建立 ChallengeResult

public:
 virtual Microsoft::AspNetCore::Mvc::ChallengeResult ^ Challenge(... cli::array <System::String ^> ^ authenticationSchemes);
[Microsoft.AspNetCore.Mvc.NonAction]
public virtual Microsoft.AspNetCore.Mvc.ChallengeResult Challenge (params string[] authenticationSchemes);
[<Microsoft.AspNetCore.Mvc.NonAction>]
abstract member Challenge : string[] -> Microsoft.AspNetCore.Mvc.ChallengeResult
override this.Challenge : string[] -> Microsoft.AspNetCore.Mvc.ChallengeResult
Public Overridable Function Challenge (ParamArray authenticationSchemes As String()) As ChallengeResult

參數

authenticationSchemes
String[]

要挑戰的驗證配置。

傳回

為回應建立 ChallengeResult 的 。

屬性

備註

此方法的行為取決於 IAuthenticationService 使用中的 。 Status401UnauthorizedStatus403Forbidden 是可能的狀態結果。

適用於

Challenge(AuthenticationProperties, String[])

來源:
ControllerBase.cs
來源:
ControllerBase.cs

ChallengeResult使用指定的驗證配置和 properties 建立 。

public:
 virtual Microsoft::AspNetCore::Mvc::ChallengeResult ^ Challenge(Microsoft::AspNetCore::Authentication::AuthenticationProperties ^ properties, ... cli::array <System::String ^> ^ authenticationSchemes);
[Microsoft.AspNetCore.Mvc.NonAction]
public virtual Microsoft.AspNetCore.Mvc.ChallengeResult Challenge (Microsoft.AspNetCore.Authentication.AuthenticationProperties properties, params string[] authenticationSchemes);
[<Microsoft.AspNetCore.Mvc.NonAction>]
abstract member Challenge : Microsoft.AspNetCore.Authentication.AuthenticationProperties * string[] -> Microsoft.AspNetCore.Mvc.ChallengeResult
override this.Challenge : Microsoft.AspNetCore.Authentication.AuthenticationProperties * string[] -> Microsoft.AspNetCore.Mvc.ChallengeResult
Public Overridable Function Challenge (properties As AuthenticationProperties, ParamArray authenticationSchemes As String()) As ChallengeResult

參數

properties
AuthenticationProperties

AuthenticationProperties 用來執行驗證挑戰。

authenticationSchemes
String[]

要挑戰的驗證配置。

傳回

為回應建立 ChallengeResult 的 。

屬性

備註

此方法的行為取決於 IAuthenticationService 使用中的 。 Status401UnauthorizedStatus403Forbidden 是可能的狀態結果。

適用於