ReflectionPermissionAttribute.ReflectionEmit Proprietà

Definizione

Attenzione

Questa API è ora deprecata.

Attenzione

ReflectionPermissionAttribute.ReflectionEmit has been deprecated and is not supported.

Attenzione

This permission is no longer used by the CLR.

Ottiene o imposta un valore che indica se l'utilizzo di alcune funzionalità in System.Reflection.Emit, ad esempio la creazione di simboli di debug, è consentito o meno.

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

Valore della proprietà

true se l'utilizzo delle funzionalità interessate è consentito; in caso contrario, false.

Attributi

Commenti

Nota

A partire da .NET Framework 2.0 Service Pack 1, l'emissione di codice non richiede ReflectionPermission più con il ReflectionPermissionFlag.ReflectionEmit flag. Alcune funzionalità di reflection generano, ad esempio l'emissione di simboli di debug, richiedono comunque il ReflectionPermissionFlag.ReflectionEmit flag. Vedere Problemi di sicurezza in Reflection Emit.

Per usare questa funzionalità, l'applicazione deve essere destinato a .NET Framework 3.5 o versione successiva.

Si applica a