SecurityPermissionAttribute.Flags Property

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com 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
ArgumentException

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

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