SecurityManager.CheckExecutionRights 属性
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
注意
现已弃用此 API。
注意
Because execution permission checks can no longer be turned off, the CheckExecutionRights property no longer has any effect.
获取或设置一个值,该值指示代码是否必须有 Execution 才能执行。
public:
static property bool CheckExecutionRights { bool get(); void set(bool value); };
[System.Obsolete]
public static bool CheckExecutionRights { get; set; }
public static bool CheckExecutionRights { get; set; }
[System.Obsolete("Because execution permission checks can no longer be turned off, the CheckExecutionRights property no longer has any effect.")]
public static bool CheckExecutionRights { get; set; }
[<System.Obsolete>]
static member CheckExecutionRights : bool with get, set
static member CheckExecutionRights : bool with get, set
[<System.Obsolete("Because execution permission checks can no longer be turned off, the CheckExecutionRights property no longer has any effect.")>]
static member CheckExecutionRights : bool with get, set
Public Shared Property CheckExecutionRights As Boolean
属性值
- 特性
例外
调用此方法的代码没有 ControlPolicy。
注解
如果此属性是 false,即使是没有 Execution 执行的代码也是如此。 执行检查成本高昂,可以消除延迟策略解决的优点。 提供此属性以在需要时禁用执行检查。
在调用 SavePolicy 之前,对此属性的更改不会被保留。 在更改保留在注册表中之前,新进程不会受到影响。