ReflectionPermissionAttribute.ReflectionEmit 属性

定义

注意

现已弃用此 API。

注意

ReflectionPermissionAttribute.ReflectionEmit has been deprecated and is not supported.

注意

This permission is no longer used by the CLR.

获取或设置一个值,指示是否允许在 System.Reflection.Emit 中使用某些功能(例如发出调试符号)。

public:
 property bool ReflectionEmit { bool get(); void set(bool value); };
[System.Obsolete]
public bool ReflectionEmit { get; set; }
[System.Obsolete("ReflectionPermissionAttribute.ReflectionEmit has been deprecated and is not supported.")]
public bool ReflectionEmit { get; set; }
public bool ReflectionEmit { get; set; }
[System.Obsolete("This permission is no longer used by the CLR.")]
public bool ReflectionEmit { get; set; }
[<System.Obsolete>]
member this.ReflectionEmit : bool with get, set
[<System.Obsolete("ReflectionPermissionAttribute.ReflectionEmit has been deprecated and is not supported.")>]
member this.ReflectionEmit : bool with get, set
member this.ReflectionEmit : bool with get, set
[<System.Obsolete("This permission is no longer used by the CLR.")>]
member this.ReflectionEmit : bool with get, set
Public Property ReflectionEmit As Boolean

属性值

如果允许使用受影响的功能,则为 true;否则为 false

属性

注解

注意

从 .NET Framework 2.0 Service Pack 1 开始,发出代码不再需要ReflectionPermission标志ReflectionPermissionFlag.ReflectionEmit。 反射发出的某些功能(例如发出调试符号)仍然需要 标志 ReflectionPermissionFlag.ReflectionEmit 。 (请参阅反射 Emit.) 中的安全问题

若要使用此功能,应用程序应面向 .NET Framework 3.5 或更高版本。

适用于