PolicyStatementAttribute Enum

Definition

Defines special attribute flags for security policy on code groups.

This enumeration supports a bitwise combination of its member values.

C#
[System.Flags]
public enum PolicyStatementAttribute
C#
[System.Flags]
[System.Serializable]
public enum PolicyStatementAttribute
C#
[System.Flags]
[System.Serializable]
[System.Runtime.InteropServices.ComVisible(true)]
public enum PolicyStatementAttribute
Inheritance
PolicyStatementAttribute
Attributes

Fields

Name Value Description
Nothing 0

No flags are set.

Exclusive 1

The exclusive code group flag. When a code group has this flag set, only the permissions associated with that code group are granted to code belonging to the code group. At most, one code group matching a given piece of code can be set as exclusive.

LevelFinal 2

The flag representing a policy statement that causes lower policy levels to not be evaluated as part of the resolve operation, effectively allowing the policy level to override lower levels.

All 3

All attribute flags are set.

Remarks

Attribute flags set on policy statements control how code groups merge with other code groups and other policy levels.

Applies to

Product Versions
.NET 8 (package-provided), 9 (package-provided)
.NET Framework 1.1, 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7 (package-provided), 4.7, 4.7.1 (package-provided), 4.7.1, 4.7.2 (package-provided), 4.7.2, 4.8 (package-provided), 4.8, 4.8.1
.NET Standard 2.0 (package-provided)
Windows Desktop 3.0, 3.1, 5, 6, 7, 8, 9