IAcl.AddEntry(IPrincipal, IAclEntry) Method
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.
Adds an ACL entry to this ACL.
[Android.Runtime.Register("addEntry", "(Ljava/security/Principal;Ljava/security/acl/AclEntry;)Z", "GetAddEntry_Ljava_security_Principal_Ljava_security_acl_AclEntry_Handler:Java.Security.Acl.IAclInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")]
public bool AddEntry (Java.Security.IPrincipal? caller, Java.Security.Acl.IAclEntry? entry);
[<Android.Runtime.Register("addEntry", "(Ljava/security/Principal;Ljava/security/acl/AclEntry;)Z", "GetAddEntry_Ljava_security_Principal_Ljava_security_acl_AclEntry_Handler:Java.Security.Acl.IAclInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")>]
abstract member AddEntry : Java.Security.IPrincipal * Java.Security.Acl.IAclEntry -> bool
Parameters
- caller
- IPrincipal
the principal invoking this method. It must be an owner of this ACL.
- entry
- IAclEntry
the ACL entry to be added to this ACL.
Returns
true on success, false if an entry of the same type (positive or negative) for the same principal is already present in this ACL.
- Attributes
Exceptions
if the invoking Principal
is not an owner of this
ACL.
Remarks
Adds an ACL entry to this ACL. An entry associates a principal (e.g., an individual or a group) with a set of permissions. Each principal can have at most one positive ACL entry (specifying permissions to be granted to the principal) and one negative ACL entry (specifying permissions to be denied). If there is already an ACL entry of the same type (negative or positive) already in the ACL, false is returned.
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.