Megosztás a következőn keresztül:


IAclEntry.AddPermission(IPermission) Method

Definition

Adds the specified permission to this ACL entry.

[Android.Runtime.Register("addPermission", "(Ljava/security/acl/Permission;)Z", "GetAddPermission_Ljava_security_acl_Permission_Handler:Java.Security.Acl.IAclEntryInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")]
public bool AddPermission (Java.Security.Acl.IPermission? permission);
[<Android.Runtime.Register("addPermission", "(Ljava/security/acl/Permission;)Z", "GetAddPermission_Ljava_security_acl_Permission_Handler:Java.Security.Acl.IAclEntryInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")>]
abstract member AddPermission : Java.Security.Acl.IPermission -> bool

Parameters

permission
IPermission

the permission to be associated with the principal in this entry.

Returns

true if the permission was added, false if the permission was already part of this entry's permission set.

Attributes

Remarks

Adds the specified permission to this ACL entry. Note: An entry can have multiple permissions.

Java documentation for java.security.acl.AclEntry.addPermission(java.security.acl.Permission).

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.

Applies to