Bagikan melalui


ReflectionPermissionAttribute.ReflectionEmit Properti

Definisi

Perhatian

ReflectionPermissionAttribute.ReflectionEmit has been deprecated and is not supported.

Perhatian

This permission is no longer used by the CLR.

Perhatian

API ini sudah tidak digunakan lagi.

Mendapatkan atau menetapkan nilai yang menunjukkan apakah penggunaan fitur tertentu di System.Reflection.Emit, seperti memancarkan simbol debug, diizinkan.

public:
 property bool ReflectionEmit { bool get(); void set(bool value); };
[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]
public bool ReflectionEmit { 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
[<System.Obsolete>]
member this.ReflectionEmit : bool with get, set
Public Property ReflectionEmit As Boolean

Nilai Properti

true jika penggunaan fitur yang terpengaruh diizinkan; jika tidak, false.

Atribut

Keterangan

Catatan

Dimulai dengan .NET Framework 2.0 Paket Layanan 1, memancarkan ReflectionPermission kode tidak lagi diperlukan dengan ReflectionPermissionFlag.ReflectionEmit bendera . Beberapa fitur pantulan memancarkan, seperti memancarkan simbol debug, masih memerlukan ReflectionPermissionFlag.ReflectionEmit bendera . (Lihat Masalah Keamanan dalam Pancaran Pantulan.)

Untuk menggunakan fungsionalitas ini, aplikasi Anda harus menargetkan .NET Framework 3.5 atau yang lebih baru.

Berlaku untuk