ChallengeResult Class¶
An Microsoft.AspNetCore.Mvc.ActionResult
that on execution invokes AuthenticationManager.ChallengeAsync
.
- Namespace
Microsoft.AspNetCore.Mvc
- Assemblies
- Microsoft.AspNetCore.Mvc.Core
Syntax¶
public class ChallengeResult : ActionResult, IActionResult
-
class
Microsoft.AspNetCore.Mvc.
ChallengeResult
Constructors¶
-
ChallengeResult
()¶ Initializes a new instance of
Microsoft.AspNetCore.Mvc.ChallengeResult
.public ChallengeResult()
-
ChallengeResult
(Microsoft.AspNetCore.Http.Authentication.AuthenticationProperties) Initializes a new instance of
Microsoft.AspNetCore.Mvc.ChallengeResult
with the specified <em>properties</em>.Arguments: properties (Microsoft.AspNetCore.Http.Authentication.AuthenticationProperties) – Microsoft.AspNetCore.Http.Authentication.AuthenticationProperties
used to perform the authentication challenge.public ChallengeResult(AuthenticationProperties properties)
-
ChallengeResult
(System.Collections.Generic.IList<System.String>) Initializes a new instance of
Microsoft.AspNetCore.Mvc.ChallengeResult
with the specified authentication schemes.Arguments: authenticationSchemes (System.Collections.Generic.IList<System.String>) – The authentication schemes to challenge. public ChallengeResult(IList<string> authenticationSchemes)
-
ChallengeResult
(System.Collections.Generic.IList<System.String>, Microsoft.AspNetCore.Http.Authentication.AuthenticationProperties) Initializes a new instance of
Microsoft.AspNetCore.Mvc.ChallengeResult
with the specified authentication schemes and <em>properties</em>.Arguments: - authenticationSchemes (System.Collections.Generic.IList<System.String>) – The authentication scheme to challenge.
- properties (Microsoft.AspNetCore.Http.Authentication.AuthenticationProperties) –
Microsoft.AspNetCore.Http.Authentication.AuthenticationProperties
used to perform the authentication challenge.
public ChallengeResult(IList<string> authenticationSchemes, AuthenticationProperties properties)
-
ChallengeResult
(System.String) Initializes a new instance of
Microsoft.AspNetCore.Mvc.ChallengeResult
with the specified authentication scheme.Arguments: authenticationScheme (System.String) – The authentication scheme to challenge. public ChallengeResult(string authenticationScheme)
-
ChallengeResult
(System.String, Microsoft.AspNetCore.Http.Authentication.AuthenticationProperties) Initializes a new instance of
Microsoft.AspNetCore.Mvc.ChallengeResult
with the specified authentication scheme and <em>properties</em>.Arguments: - authenticationScheme (System.String) – The authentication schemes to challenge.
- properties (Microsoft.AspNetCore.Http.Authentication.AuthenticationProperties) –
Microsoft.AspNetCore.Http.Authentication.AuthenticationProperties
used to perform the authentication challenge.
public ChallengeResult(string authenticationScheme, AuthenticationProperties properties)
-
Properties¶
-
Microsoft.AspNetCore.Mvc.ChallengeResult.
AuthenticationSchemes
¶ Gets or sets the authentication schemes that are challenged.
Return type: System.Collections.Generic.IList<System.String> public IList<string> AuthenticationSchemes { get; set; }
-
Microsoft.AspNetCore.Mvc.ChallengeResult.
Properties
¶ Gets or sets the
Microsoft.AspNetCore.Http.Authentication.AuthenticationProperties
used to perform the authentication challenge.Return type: Microsoft.AspNetCore.Http.Authentication.AuthenticationProperties public AuthenticationProperties Properties { get; set; }
-