Edit

Share via


PermissionSet.IsEmpty Method

Definition

Gets a value indicating whether the PermissionSet is empty.

C#
public bool IsEmpty();
C#
public virtual bool IsEmpty();

Returns

true if the PermissionSet is empty; otherwise, false.

Remarks

A PermissionSet can be empty and yet contain instances of permissions if those permissions are in the fully-restricted state. Permissions are in a fully restricted state if their IsSubsetOf methods return true when null is passed as a parameter.

Applies to