Language

RequiresPermissionAttribute Class

Definition

Records an Android permission value associated with a member or parameter.

[System.AttributeUsage(System.AttributeTargets.Constructor | System.AttributeTargets.Field | System.AttributeTargets.Method | System.AttributeTargets.Parameter | System.AttributeTargets.Property, AllowMultiple=true)]
public class RequiresPermissionAttribute : Attribute
[<System.AttributeUsage(System.AttributeTargets.Constructor | System.AttributeTargets.Field | System.AttributeTargets.Method | System.AttributeTargets.Parameter | System.AttributeTargets.Property, AllowMultiple=true)>]
type RequiresPermissionAttribute = class
    inherit Attribute
Inheritance
RequiresPermissionAttribute
Attributes

Remarks

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Constructors

Name Description
RequiresPermissionAttribute(String)

Creates an attribute that records a permission value.

Properties

Name Description
Value

Gets or sets the Android permission value recorded by this attribute.

Applies to