UsesPermissionAttribute Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Requests a permission in the application manifest without defining or granting that permission.
[System.AttributeUsage(System.AttributeTargets.Assembly, AllowMultiple=true, Inherited=false)]
[System.Serializable]
public sealed class UsesPermissionAttribute : Attribute
[<System.AttributeUsage(System.AttributeTargets.Assembly, AllowMultiple=true, Inherited=false)>]
[<System.Serializable>]
type UsesPermissionAttribute = class
inherit Attribute
- Inheritance
-
UsesPermissionAttribute
- 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 |
|---|---|
| UsesPermissionAttribute() |
Initializes a permission-request declaration. |
| UsesPermissionAttribute(String) |
Initializes a manifest request for the supplied permission name. |
Properties
| Name | Description |
|---|---|
| MaxSdkVersion |
Gets or sets the SDK-limit declaration for the permission request. |
| Name |
Gets or sets the name of the requested permission. |
| UsesPermissionFlags |
Gets or sets the flag expression for the permission request. |