This documentation is archived and is not being maintained.

ReflectionPermissionAttribute.Flags Property

Gets or sets the current allowed uses of reflection.

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

public ReflectionPermissionFlag Flags { get; set; }
/** @property */
public ReflectionPermissionFlag get_Flags ()

/** @property */
public void set_Flags (ReflectionPermissionFlag value)

public function get Flags () : ReflectionPermissionFlag

public function set Flags (value : ReflectionPermissionFlag)

Not applicable.

Property Value

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

Exception typeCondition


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

Windows 98, Windows Server 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0, 2.0, 1.1, 1.0