System.Security.Permissions.ReflectionPermissionAttribute.ReflectionEmit Property

Gets or sets a value that indicates whether use of certain features in System.Reflection.Emit, such as emitting debug symbols, is allowed.

Syntax

[System.Obsolete]
public bool ReflectionEmit { get; set; }

Value

Documentation for this section has not yet been entered.

Remarks

Note:

Starting with the net_v20sp1_long, emitting code no longer requires System.Security.Permissions.ReflectionPermission with the ReflectionPermissionFlag.ReflectionEmit flag. Some features of reflection emit, such as emitting debug symbols, still require the ReflectionPermissionFlag.ReflectionEmit flag. (See Security Issues in Reflection Emit.)

To use this functionality, your application should target the net_v35_long or later.

Requirements

Namespace: System.Security.Permissions
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0, 4.0.0.0