Dela via


RequiresAuthorizationAttribute(AuthorizationLevel) Constructor

Definition

Initialize a new instance of the RequiresAuthorizationAttribute with a given level.

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)

Parameters

level
AuthorizationLevel

The minimum authorization level required to access the resource.

Remarks

This attribute is obsolete, please use System.Web.Http.AuthorizeLevelAttribute instead.

Applies to