ControllerBase.Forbid 方法

定义

重载

Forbid(AuthenticationProperties, String[])

默认情况下,ForbidResultStatus403Forbidden使用指定的身份验证方案和 properties创建) (。

Forbid()

ForbidResult 默认) Status403Forbidden 创建 (。

Forbid(AuthenticationProperties)

默认情况下,ForbidResultStatus403Forbidden使用指定的 properties创建) (。

Forbid(AuthenticationProperties)

ForbidResult使用指定的 properties创建 。

Forbid(String[])

默认情况下,ForbidResultStatus403Forbidden使用指定的身份验证方案创建) (。

Forbid(AuthenticationProperties, String[])

使用指定的身份验证方案和 properties创建一个 ForbidResult

Forbid(AuthenticationProperties, String[])

Source:
ControllerBase.cs
Source:
ControllerBase.cs
Source:
ControllerBase.cs

默认情况下,ForbidResultStatus403Forbidden使用指定的身份验证方案和 properties创建) (。

public:
 virtual Microsoft::AspNetCore::Mvc::ForbidResult ^ Forbid(Microsoft::AspNetCore::Authentication::AuthenticationProperties ^ properties, ... cli::array <System::String ^> ^ authenticationSchemes);
[Microsoft.AspNetCore.Mvc.NonAction]
public virtual Microsoft.AspNetCore.Mvc.ForbidResult Forbid (Microsoft.AspNetCore.Authentication.AuthenticationProperties properties, params string[] authenticationSchemes);
[<Microsoft.AspNetCore.Mvc.NonAction>]
abstract member Forbid : Microsoft.AspNetCore.Authentication.AuthenticationProperties * string[] -> Microsoft.AspNetCore.Mvc.ForbidResult
override this.Forbid : Microsoft.AspNetCore.Authentication.AuthenticationProperties * string[] -> Microsoft.AspNetCore.Mvc.ForbidResult
Public Overridable Function Forbid (properties As AuthenticationProperties, ParamArray authenticationSchemes As String()) As ForbidResult

参数

properties
AuthenticationProperties

AuthenticationProperties 用于执行身份验证质询。

authenticationSchemes
String[]

要质询的身份验证方案。

返回

为响应创建的 ForbidResult

属性

注解

某些身份验证方案(如 Cookie)将转换为 Status403Forbidden 重定向以显示登录页。

适用于

Forbid()

Source:
ControllerBase.cs
Source:
ControllerBase.cs
Source:
ControllerBase.cs

ForbidResult 默认) Status403Forbidden 创建 (。

public:
 virtual Microsoft::AspNetCore::Mvc::ForbidResult ^ Forbid();
[Microsoft.AspNetCore.Mvc.NonAction]
public virtual Microsoft.AspNetCore.Mvc.ForbidResult Forbid ();
[<Microsoft.AspNetCore.Mvc.NonAction>]
abstract member Forbid : unit -> Microsoft.AspNetCore.Mvc.ForbidResult
override this.Forbid : unit -> Microsoft.AspNetCore.Mvc.ForbidResult
Public Overridable Function Forbid () As ForbidResult

返回

为响应创建的 ForbidResult

属性

注解

某些身份验证方案(如 Cookie)将转换为 Status403Forbidden 重定向以显示登录页。

适用于

Forbid(AuthenticationProperties)

Source:
ControllerBase.cs
Source:
ControllerBase.cs
Source:
ControllerBase.cs

默认情况下,ForbidResultStatus403Forbidden使用指定的 properties创建) (。

public:
 virtual Microsoft::AspNetCore::Mvc::ForbidResult ^ Forbid(Microsoft::AspNetCore::Authentication::AuthenticationProperties ^ properties);
[Microsoft.AspNetCore.Mvc.NonAction]
public virtual Microsoft.AspNetCore.Mvc.ForbidResult Forbid (Microsoft.AspNetCore.Authentication.AuthenticationProperties properties);
[<Microsoft.AspNetCore.Mvc.NonAction>]
abstract member Forbid : Microsoft.AspNetCore.Authentication.AuthenticationProperties -> Microsoft.AspNetCore.Mvc.ForbidResult
override this.Forbid : Microsoft.AspNetCore.Authentication.AuthenticationProperties -> Microsoft.AspNetCore.Mvc.ForbidResult
Public Overridable Function Forbid (properties As AuthenticationProperties) As ForbidResult

参数

properties
AuthenticationProperties

AuthenticationProperties 用于执行身份验证质询。

返回

为响应创建的 ForbidResult

属性

注解

某些身份验证方案(如 Cookie)将转换为 Status403Forbidden 重定向以显示登录页。

适用于

Forbid(AuthenticationProperties)

ForbidResult使用指定的 properties创建 。

public:
 virtual Microsoft::AspNetCore::Mvc::ForbidResult ^ Forbid(Microsoft::AspNetCore::Http::Authentication::AuthenticationProperties ^ properties);
[Microsoft.AspNetCore.Mvc.NonAction]
public virtual Microsoft.AspNetCore.Mvc.ForbidResult Forbid (Microsoft.AspNetCore.Http.Authentication.AuthenticationProperties properties);
[<Microsoft.AspNetCore.Mvc.NonAction>]
abstract member Forbid : Microsoft.AspNetCore.Http.Authentication.AuthenticationProperties -> Microsoft.AspNetCore.Mvc.ForbidResult
override this.Forbid : Microsoft.AspNetCore.Http.Authentication.AuthenticationProperties -> Microsoft.AspNetCore.Mvc.ForbidResult
Public Overridable Function Forbid (properties As AuthenticationProperties) As ForbidResult

参数

properties
AuthenticationProperties

AuthenticationProperties 用于执行身份验证质询。

返回

为响应创建的 ForbidResult

属性

适用于

Forbid(String[])

Source:
ControllerBase.cs
Source:
ControllerBase.cs
Source:
ControllerBase.cs

默认情况下,ForbidResultStatus403Forbidden使用指定的身份验证方案创建) (。

public:
 virtual Microsoft::AspNetCore::Mvc::ForbidResult ^ Forbid(... cli::array <System::String ^> ^ authenticationSchemes);
[Microsoft.AspNetCore.Mvc.NonAction]
public virtual Microsoft.AspNetCore.Mvc.ForbidResult Forbid (params string[] authenticationSchemes);
[<Microsoft.AspNetCore.Mvc.NonAction>]
abstract member Forbid : string[] -> Microsoft.AspNetCore.Mvc.ForbidResult
override this.Forbid : string[] -> Microsoft.AspNetCore.Mvc.ForbidResult
Public Overridable Function Forbid (ParamArray authenticationSchemes As String()) As ForbidResult

参数

authenticationSchemes
String[]

要质询的身份验证方案。

返回

为响应创建的 ForbidResult

属性

注解

某些身份验证方案(如 Cookie)将转换为 Status403Forbidden 重定向以显示登录页。

适用于

Forbid(AuthenticationProperties, String[])

使用指定的身份验证方案和 properties创建一个 ForbidResult

public:
 virtual Microsoft::AspNetCore::Mvc::ForbidResult ^ Forbid(Microsoft::AspNetCore::Http::Authentication::AuthenticationProperties ^ properties, ... cli::array <System::String ^> ^ authenticationSchemes);
[Microsoft.AspNetCore.Mvc.NonAction]
public virtual Microsoft.AspNetCore.Mvc.ForbidResult Forbid (Microsoft.AspNetCore.Http.Authentication.AuthenticationProperties properties, params string[] authenticationSchemes);
[<Microsoft.AspNetCore.Mvc.NonAction>]
abstract member Forbid : Microsoft.AspNetCore.Http.Authentication.AuthenticationProperties * string[] -> Microsoft.AspNetCore.Mvc.ForbidResult
override this.Forbid : Microsoft.AspNetCore.Http.Authentication.AuthenticationProperties * string[] -> Microsoft.AspNetCore.Mvc.ForbidResult
Public Overridable Function Forbid (properties As AuthenticationProperties, ParamArray authenticationSchemes As String()) As ForbidResult

参数

properties
AuthenticationProperties

AuthenticationProperties 用于执行身份验证质询。

authenticationSchemes
String[]

要质询的身份验证方案。

返回

为响应创建的 ForbidResult

属性

适用于