IOwner.AddOwner(IPrincipal, IPrincipal) 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 owner.
[Android.Runtime.Register("addOwner", "(Ljava/security/Principal;Ljava/security/Principal;)Z", "GetAddOwner_Ljava_security_Principal_Ljava_security_Principal_Handler:Java.Security.Acl.IOwnerInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")]
public bool AddOwner (Java.Security.IPrincipal? caller, Java.Security.IPrincipal? owner);
[<Android.Runtime.Register("addOwner", "(Ljava/security/Principal;Ljava/security/Principal;)Z", "GetAddOwner_Ljava_security_Principal_Ljava_security_Principal_Handler:Java.Security.Acl.IOwnerInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")>]
abstract member AddOwner : Java.Security.IPrincipal * Java.Security.IPrincipal -> bool
Parameters
- caller
- IPrincipal
the principal invoking this method. It must be an owner of the ACL.
- owner
- IPrincipal
the owner that should be added to the list of owners.
Returns
true if successful, false if owner is already an owner.
- Attributes
Exceptions
if the invoking principal is not an owner.
Remarks
Adds an owner. Only owners can modify ACL contents. The caller principal must be an owner of the ACL in order to invoke this method. That is, only an owner can add another owner. The initial owner is configured at ACL construction time.
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.