RequiresAuthorizationAttribute Class

 
Note: This API is now obsolete.

Apply this attribute to ApiController actions or controllers access to them. Based on the AuthorizationLevel specified, access to the target action will be restricted to requests that have been granted that level or higher.

Namespace:   Microsoft.WindowsAzure.Mobile.Service.Security
Assembly:  Microsoft.WindowsAzure.Mobile.Service (in Microsoft.WindowsAzure.Mobile.Service.dll)

System::Object
  System::Attribute
    System.Web.Http.Filters::FilterAttribute
      System.Web.Http.Filters::AuthorizationFilterAttribute
        System.Web.Http::AuthorizeLevelAttribute
          Microsoft.WindowsAzure.Mobile.Service.Security::RequiresAuthorizationAttribute

[ObsoleteAttribute("Please use the new AuthorizeLevelAttribute class instead.")]
[AttributeUsageAttribute(AttributeTargets::Class | AttributeTargets::Method, 
	AllowMultiple = false, Inherited = true)]
public ref class RequiresAuthorizationAttribute sealed : AuthorizeLevelAttribute

NameDescription
System_CAPS_pubmethodRequiresAuthorizationAttribute(AuthorizationLevel)

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

NameDescription
System_CAPS_pubpropertyAllowMultiple

(Inherited from FilterAttribute.)

System_CAPS_pubpropertyTypeId

(Inherited from Attribute.)

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Return to top
Show: