Lingua

RequiresPermissionAttribute Classe

Definizione

Registra un valore di autorizzazione Android associato a un membro o a un parametro.

[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
Ereditarietà
RequiresPermissionAttribute
Attributi

Costruttori

Nome Descrizione
RequiresPermissionAttribute(String)

Crea un attributo che registra un valore di autorizzazione.

Proprietà

Nome Descrizione
Value

Ottiene o imposta il valore dell'autorizzazione Android registrato da questo attributo.

Si applica a