AuthenticationManager.ForbidAsync 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
ForbidAsync(String, AuthenticationProperties) | |
ForbidAsync(String) | |
ForbidAsync() |
使用 Forbidden 建立驗證管理員的挑戰。 |
ForbidAsync(AuthenticationProperties) |
使用 Forbidden 建立驗證管理員的挑戰。 |
ForbidAsync(String, AuthenticationProperties)
public:
virtual System::Threading::Tasks::Task ^ ForbidAsync(System::String ^ authenticationScheme, Microsoft::AspNetCore::Http::Authentication::AuthenticationProperties ^ properties);
public virtual System.Threading.Tasks.Task ForbidAsync (string authenticationScheme, Microsoft.AspNetCore.Http.Authentication.AuthenticationProperties properties);
abstract member ForbidAsync : string * Microsoft.AspNetCore.Http.Authentication.AuthenticationProperties -> System.Threading.Tasks.Task
override this.ForbidAsync : string * Microsoft.AspNetCore.Http.Authentication.AuthenticationProperties -> System.Threading.Tasks.Task
Public Overridable Function ForbidAsync (authenticationScheme As String, properties As AuthenticationProperties) As Task
參數
- authenticationScheme
- String
- properties
- AuthenticationProperties
傳回
適用於
ForbidAsync(String)
public:
virtual System::Threading::Tasks::Task ^ ForbidAsync(System::String ^ authenticationScheme);
public virtual System.Threading.Tasks.Task ForbidAsync (string authenticationScheme);
abstract member ForbidAsync : string -> System.Threading.Tasks.Task
override this.ForbidAsync : string -> System.Threading.Tasks.Task
Public Overridable Function ForbidAsync (authenticationScheme As String) As Task
參數
- authenticationScheme
- String
傳回
適用於
ForbidAsync()
使用 Forbidden 建立驗證管理員的挑戰。
public:
virtual System::Threading::Tasks::Task ^ ForbidAsync();
public virtual System.Threading.Tasks.Task ForbidAsync ();
abstract member ForbidAsync : unit -> System.Threading.Tasks.Task
override this.ForbidAsync : unit -> System.Threading.Tasks.Task
Public Overridable Function ForbidAsync () As Task
傳回
, Task 表示非同步挑戰作業。
適用於
ForbidAsync(AuthenticationProperties)
使用 Forbidden 建立驗證管理員的挑戰。
public:
virtual System::Threading::Tasks::Task ^ ForbidAsync(Microsoft::AspNetCore::Http::Authentication::AuthenticationProperties ^ properties);
public virtual System.Threading.Tasks.Task ForbidAsync (Microsoft.AspNetCore.Http.Authentication.AuthenticationProperties properties);
abstract member ForbidAsync : Microsoft.AspNetCore.Http.Authentication.AuthenticationProperties -> System.Threading.Tasks.Task
override this.ForbidAsync : Microsoft.AspNetCore.Http.Authentication.AuthenticationProperties -> System.Threading.Tasks.Task
Public Overridable Function ForbidAsync (properties As AuthenticationProperties) As Task
參數
- properties
- AuthenticationProperties
特定驗證類型可使用的其他任意值。
傳回
, Task 表示非同步挑戰作業。