System.Security.PermissionSet.IsEmpty Method

Gets a value indicating whether the System.Security.PermissionSet is empty.

Syntax

public bool IsEmpty ()

Returns

true if the System.Security.PermissionSet is empty; otherwise, false.

Remarks

A System.Security.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.

Requirements

Namespace: System.Security
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0, 4.0.0.0