AuthenticationManager.ChallengeAsync 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
ChallengeAsync() | |
ChallengeAsync(AuthenticationProperties) | |
ChallengeAsync(String) | |
ChallengeAsync(String, AuthenticationProperties) | |
ChallengeAsync(String, AuthenticationProperties, ChallengeBehavior) |
ChallengeAsync()
public:
virtual System::Threading::Tasks::Task ^ ChallengeAsync();
public virtual System.Threading.Tasks.Task ChallengeAsync ();
abstract member ChallengeAsync : unit -> System.Threading.Tasks.Task
override this.ChallengeAsync : unit -> System.Threading.Tasks.Task
Public Overridable Function ChallengeAsync () As Task
傳回
適用於
ChallengeAsync(AuthenticationProperties)
public:
virtual System::Threading::Tasks::Task ^ ChallengeAsync(Microsoft::AspNetCore::Http::Authentication::AuthenticationProperties ^ properties);
public virtual System.Threading.Tasks.Task ChallengeAsync (Microsoft.AspNetCore.Http.Authentication.AuthenticationProperties properties);
abstract member ChallengeAsync : Microsoft.AspNetCore.Http.Authentication.AuthenticationProperties -> System.Threading.Tasks.Task
override this.ChallengeAsync : Microsoft.AspNetCore.Http.Authentication.AuthenticationProperties -> System.Threading.Tasks.Task
Public Overridable Function ChallengeAsync (properties As AuthenticationProperties) As Task
參數
- properties
- AuthenticationProperties
傳回
適用於
ChallengeAsync(String)
public:
virtual System::Threading::Tasks::Task ^ ChallengeAsync(System::String ^ authenticationScheme);
public virtual System.Threading.Tasks.Task ChallengeAsync (string authenticationScheme);
abstract member ChallengeAsync : string -> System.Threading.Tasks.Task
override this.ChallengeAsync : string -> System.Threading.Tasks.Task
Public Overridable Function ChallengeAsync (authenticationScheme As String) As Task
參數
- authenticationScheme
- String
傳回
適用於
ChallengeAsync(String, AuthenticationProperties)
public:
virtual System::Threading::Tasks::Task ^ ChallengeAsync(System::String ^ authenticationScheme, Microsoft::AspNetCore::Http::Authentication::AuthenticationProperties ^ properties);
public virtual System.Threading.Tasks.Task ChallengeAsync (string authenticationScheme, Microsoft.AspNetCore.Http.Authentication.AuthenticationProperties properties);
abstract member ChallengeAsync : string * Microsoft.AspNetCore.Http.Authentication.AuthenticationProperties -> System.Threading.Tasks.Task
override this.ChallengeAsync : string * Microsoft.AspNetCore.Http.Authentication.AuthenticationProperties -> System.Threading.Tasks.Task
Public Overridable Function ChallengeAsync (authenticationScheme As String, properties As AuthenticationProperties) As Task
參數
- authenticationScheme
- String
- properties
- AuthenticationProperties
傳回
適用於
ChallengeAsync(String, AuthenticationProperties, ChallengeBehavior)
public:
abstract System::Threading::Tasks::Task ^ ChallengeAsync(System::String ^ authenticationScheme, Microsoft::AspNetCore::Http::Authentication::AuthenticationProperties ^ properties, Microsoft::AspNetCore::Http::Features::Authentication::ChallengeBehavior behavior);
public abstract System.Threading.Tasks.Task ChallengeAsync (string authenticationScheme, Microsoft.AspNetCore.Http.Authentication.AuthenticationProperties properties, Microsoft.AspNetCore.Http.Features.Authentication.ChallengeBehavior behavior);
abstract member ChallengeAsync : string * Microsoft.AspNetCore.Http.Authentication.AuthenticationProperties * Microsoft.AspNetCore.Http.Features.Authentication.ChallengeBehavior -> System.Threading.Tasks.Task
Public MustOverride Function ChallengeAsync (authenticationScheme As String, properties As AuthenticationProperties, behavior As ChallengeBehavior) As Task
參數
- authenticationScheme
- String
- properties
- AuthenticationProperties
- behavior
- ChallengeBehavior