你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

RequiresAuthorizationAttribute(AuthorizationLevel) 构造函数

定义

使用给定 levelRequiresAuthorizationAttribute 初始化 的新实例。

public RequiresAuthorizationAttribute (Microsoft.WindowsAzure.Mobile.Service.Security.AuthorizationLevel level);
new Microsoft.WindowsAzure.Mobile.Service.Security.RequiresAuthorizationAttribute : Microsoft.WindowsAzure.Mobile.Service.Security.AuthorizationLevel -> Microsoft.WindowsAzure.Mobile.Service.Security.RequiresAuthorizationAttribute
Public Sub New (level As AuthorizationLevel)

参数

level
AuthorizationLevel

访问资源所需的最低授权级别。

注解

此属性已过时,请改用 System.Web.Http.AuthorizeLevelAttribute

适用于