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