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
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.