SecurityPermissionAttribute.Flags Property


The .NET API Reference documentation has a new home. Visit the .NET API Browser on to see the new experience.

Gets or sets all permission flags comprising the SecurityPermission permissions.

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

member Flags : SecurityPermissionFlag with get, set

Property Value

Type: System.Security.Permissions.SecurityPermissionFlag

One or more of the SecurityPermissionFlag values combined using a bitwise OR.

Exception Condition

An attempt is made to set this property to an invalid value. See SecurityPermissionFlag for the valid values.

.NET Framework
Available since 1.1
Available since 2.0
Windows Phone Silverlight
Available since 7.0
Return to top