共用方式為


ReflectionPermissionAttribute.ReflectionEmit 屬性

定義

警告

ReflectionPermissionAttribute.ReflectionEmit has been deprecated and is not supported.

警告

This permission is no longer used by the CLR.

警告

此 API 現已淘汰。

取得或設定值,這個值表示是否允許 System.Reflection.Emit 中使用某些功能,例如發出偵錯符號。

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

屬性值

如果允許使用受影響的功能,則為 true,否則為 false

屬性

備註

注意

從 .NET Framework 2.0 Service Pack 1 開始,發出程式代碼不再需要 ReflectionPermissionReflectionPermissionFlag.ReflectionEmit標。 反映發出的某些功能,例如發出偵錯符號,仍然需要 ReflectionPermissionFlag.ReflectionEmit 旗標。 (請參閱 反映發出中的安全性問題。)

若要使用這項功能,您的應用程式應該以 .NET Framework 3.5 或更新版本為目標。

適用於