AuthenticationManager.ForbidAsync Method   
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
| ForbidAsync(String, AuthenticationProperties) | |
| ForbidAsync(String) | |
| ForbidAsync() | Creates a challenge for the authentication manager with Forbidden. | 
| ForbidAsync(AuthenticationProperties) | Creates a challenge for the authentication manager with Forbidden. | 
ForbidAsync(String, AuthenticationProperties)
- Source:
- AuthenticationManager.cs
- Source:
- AuthenticationManager.cs
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.TaskPublic Overridable Function ForbidAsync (authenticationScheme As String, properties As AuthenticationProperties) As TaskParameters
- authenticationScheme
- String
- properties
- AuthenticationProperties
Returns
Applies to
ForbidAsync(String)
- Source:
- AuthenticationManager.cs
- Source:
- AuthenticationManager.cs
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.TaskPublic Overridable Function ForbidAsync (authenticationScheme As String) As TaskParameters
- authenticationScheme
- String
Returns
Applies to
ForbidAsync()
- Source:
- AuthenticationManager.cs
- Source:
- AuthenticationManager.cs
Creates a challenge for the authentication manager with 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.TaskPublic Overridable Function ForbidAsync () As TaskReturns
A Task that represents the asynchronous challenge operation.
Applies to
ForbidAsync(AuthenticationProperties)
- Source:
- AuthenticationManager.cs
- Source:
- AuthenticationManager.cs
Creates a challenge for the authentication manager with 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.TaskPublic Overridable Function ForbidAsync (properties As AuthenticationProperties) As TaskParameters
- properties
- AuthenticationProperties
Additional arbitrary values which may be used by particular authentication types.
Returns
A Task that represents the asynchronous challenge operation.