ReflectionPermissionAttribute.ReflectionEmit Propiedad

Definición

Precaución

Esta API ya está en desuso.

Precaución

ReflectionPermissionAttribute.ReflectionEmit has been deprecated and is not supported.

Precaución

This permission is no longer used by the CLR.

Obtiene o establece un valor que indica si se permite el uso de ciertas características en System.Reflection.Emit, como emitir los símbolos de depuración.

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

Valor de propiedad

true si se permite el uso de las características afectadas; de lo contrario, false.

Atributos

Comentarios

Nota

A partir de .NET Framework 2.0 Service Pack 1, la emisión de código ya no requiere ReflectionPermission con la ReflectionPermissionFlag.ReflectionEmit marca . Algunas características de emisión de reflexión, como la emisión de símbolos de depuración, siguen necesitando la ReflectionPermissionFlag.ReflectionEmit marca . (Consulte Problemas de seguridad en emisión de reflexión).

Para usar esta funcionalidad, la aplicación debe tener como destino .NET Framework 3.5 o posterior.

Se aplica a