IAclEntry.SetPrincipal(IPrincipal) Method

Definition

Specifies the principal for which permissions are granted or denied by this ACL entry.

[Android.Runtime.Register("setPrincipal", "(Ljava/security/Principal;)Z", "GetSetPrincipal_Ljava_security_Principal_Handler:Java.Security.Acl.IAclEntryInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")]
public bool SetPrincipal (Java.Security.IPrincipal? user);
[<Android.Runtime.Register("setPrincipal", "(Ljava/security/Principal;)Z", "GetSetPrincipal_Ljava_security_Principal_Handler:Java.Security.Acl.IAclEntryInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")>]
abstract member SetPrincipal : Java.Security.IPrincipal -> bool

Parameters

user
IPrincipal

the principal to be set for this entry.

Returns

Boolean

true if the principal is set, false if there was already a principal set for this entry.

Attributes

Remarks

Java documentation for java.security.acl.AclEntry.setPrincipal(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