Share via


IOwner.DeleteOwner(IPrincipal, IPrincipal) Method

Definition

Deletes an owner.

[Android.Runtime.Register("deleteOwner", "(Ljava/security/Principal;Ljava/security/Principal;)Z", "GetDeleteOwner_Ljava_security_Principal_Ljava_security_Principal_Handler:Java.Security.Acl.IOwnerInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")]
public bool DeleteOwner (Java.Security.IPrincipal? caller, Java.Security.IPrincipal? owner);
[<Android.Runtime.Register("deleteOwner", "(Ljava/security/Principal;Ljava/security/Principal;)Z", "GetDeleteOwner_Ljava_security_Principal_Ljava_security_Principal_Handler:Java.Security.Acl.IOwnerInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")>]
abstract member DeleteOwner : 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 to be removed from the list of owners.

Returns

true if the owner is removed, false if the owner is not part of the list of owners.

Attributes

Exceptions

if the invoking principal is not an owner.

if the owner to be removed is the last owner and hence removing it would make this object owner-less.

Remarks

Deletes an owner. If this is the last owner in the ACL, an exception is raised.

The caller principal must be an owner of the ACL in order to invoke this method.

Java documentation for java.security.acl.Owner.deleteOwner(java.security.Principal, java.security.Principal).

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