PageModel.Challenge 方法

定義

多載

Challenge()

建立 ChallengeResult

Challenge(AuthenticationProperties)

ChallengeResult使用指定的 properties 建立 。

Challenge(String[])

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

Challenge(AuthenticationProperties, String[])

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

Challenge()

建立 ChallengeResult

public:
 virtual Microsoft::AspNetCore::Mvc::ChallengeResult ^ Challenge();
public virtual Microsoft.AspNetCore.Mvc.ChallengeResult Challenge ();
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)

ChallengeResult使用指定的 properties 建立 。

public:
 virtual Microsoft::AspNetCore::Mvc::ChallengeResult ^ Challenge(Microsoft::AspNetCore::Authentication::AuthenticationProperties ^ properties);
public virtual Microsoft.AspNetCore.Mvc.ChallengeResult Challenge (Microsoft.AspNetCore.Authentication.AuthenticationProperties properties);
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(String[])

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

public:
 virtual Microsoft::AspNetCore::Mvc::ChallengeResult ^ Challenge(... cli::array <System::String ^> ^ authenticationSchemes);
public virtual Microsoft.AspNetCore.Mvc.ChallengeResult Challenge (params string[] authenticationSchemes);
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[])

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

public:
 virtual Microsoft::AspNetCore::Mvc::ChallengeResult ^ Challenge(Microsoft::AspNetCore::Authentication::AuthenticationProperties ^ properties, ... cli::array <System::String ^> ^ authenticationSchemes);
public virtual Microsoft.AspNetCore.Mvc.ChallengeResult Challenge (Microsoft.AspNetCore.Authentication.AuthenticationProperties properties, params string[] authenticationSchemes);
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 在可能的狀態結果之間。

適用於