Aracılığıyla paylaş


PageModel.Challenge Yöntem

Tanım

Aşırı Yüklemeler

Challenge()

bir ChallengeResultoluşturur.

Challenge(AuthenticationProperties)

Belirtilen propertiesile bir ChallengeResult oluşturur.

Challenge(String[])

Belirtilen kimlik doğrulama düzenleriyle bir ChallengeResult oluşturur.

Challenge(AuthenticationProperties, String[])

Belirtilen kimlik doğrulama düzenleri ve propertiesile bir ChallengeResult oluşturur.

Challenge()

Kaynak:
PageModel.cs
Kaynak:
PageModel.cs

bir ChallengeResultoluşturur.

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

Döndürülenler

Yanıt için oluşturulan ChallengeResult .

Açıklamalar

Bu yöntemin davranışı kullanımdaki öğesine IAuthenticationService bağlıdır. Status401Unauthorized ve Status403Forbidden olası durum sonuçları arasında yer alır.

Şunlara uygulanır

Challenge(AuthenticationProperties)

Kaynak:
PageModel.cs
Kaynak:
PageModel.cs

Belirtilen propertiesile bir ChallengeResult oluşturur.

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

Parametreler

properties
AuthenticationProperties

AuthenticationProperties kimlik doğrulama sınamasını gerçekleştirmek için kullanılır.

Döndürülenler

Yanıt için oluşturulan ChallengeResult .

Açıklamalar

Bu yöntemin davranışı kullanımdaki öğesine IAuthenticationService bağlıdır. Status401Unauthorized ve Status403Forbidden olası durum sonuçları arasında yer alır.

Şunlara uygulanır

Challenge(String[])

Kaynak:
PageModel.cs
Kaynak:
PageModel.cs

Belirtilen kimlik doğrulama düzenleriyle bir ChallengeResult oluşturur.

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

Parametreler

authenticationSchemes
String[]

Sınamak için kimlik doğrulama düzenleri.

Döndürülenler

Yanıt için oluşturulan ChallengeResult .

Açıklamalar

Bu yöntemin davranışı kullanımdaki öğesine IAuthenticationService bağlıdır. Status401Unauthorized ve Status403Forbidden olası durum sonuçları arasında yer alır.

Şunlara uygulanır

Challenge(AuthenticationProperties, String[])

Kaynak:
PageModel.cs
Kaynak:
PageModel.cs

Belirtilen kimlik doğrulama düzenleri ve propertiesile bir ChallengeResult oluşturur.

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

Parametreler

properties
AuthenticationProperties

AuthenticationProperties kimlik doğrulama sınamasını gerçekleştirmek için kullanılır.

authenticationSchemes
String[]

Sınamak için kimlik doğrulama düzenleri.

Döndürülenler

Yanıt için oluşturulan ChallengeResult .

Açıklamalar

Bu yöntemin davranışı kullanımdaki öğesine IAuthenticationService bağlıdır. Status401Unauthorized ve Status403Forbidden olası durum sonuçları arasında yer alır.

Şunlara uygulanır