Export (0) Print
Expand All

PermissionSet::IsEmpty Method

Gets a value indicating whether the PermissionSet is empty.

Namespace:  System.Security
Assembly:  mscorlib (in mscorlib.dll)

public:
bool IsEmpty()

Return Value

Type: System::Boolean
true if the PermissionSet is empty; otherwise, false.

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 nullptr is passed as a parameter.

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5, 3.0, 2.0, 1.1

.NET Framework Client Profile

Supported in: 4, 3.5 SP1
Show:
© 2015 Microsoft