Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Flags Property

SecurityPermissionAttribute.Flags Property

Gets or sets all permission flags comprising the SecurityPermission permissions.

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

public SecurityPermissionFlag Flags { get; set; }

Property Value

Type: System.Security.Permissions.SecurityPermissionFlag
One or more of the SecurityPermissionFlag values combined using a bitwise OR.

ExceptionCondition
ArgumentException

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

.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

.NET for Windows Phone apps

Supported in: Windows Phone 8.1, Windows Phone Silverlight 8.1, Windows Phone Silverlight 8
Show:
© 2015 Microsoft