IAcl.AddEntry(IPrincipal, IAclEntry) Method

Definition

Caution

deprecated

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")]
[System.Obsolete("deprecated")]
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")>]
[<System.Obsolete("deprecated")>]
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

Boolean

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

Java documentation for java.security.acl.Acl.addEntry(java.security.Principal, java.security.acl.AclEntry).

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