SecurityManager 类
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
注意
Code Access Security is not supported or honored by the runtime.
提供与安全系统交互的类的主要接入点。 此类不能被继承。
public ref class SecurityManager abstract sealed
public ref class SecurityManager sealed
[System.Obsolete("Code Access Security is not supported or honored by the runtime.", DiagnosticId="SYSLIB0003", UrlFormat="https://aka.ms/dotnet-warnings/{0}")]
public static class SecurityManager
public sealed class SecurityManager
[System.Runtime.InteropServices.ComVisible(true)]
public static class SecurityManager
public static class SecurityManager
[<System.Obsolete("Code Access Security is not supported or honored by the runtime.", DiagnosticId="SYSLIB0003", UrlFormat="https://aka.ms/dotnet-warnings/{0}")>]
type SecurityManager = class
type SecurityManager = class
[<System.Runtime.InteropServices.ComVisible(true)>]
type SecurityManager = class
Public Class SecurityManager
Public NotInheritable Class SecurityManager
- 继承
-
SecurityManager
- 属性
注解
Caution
代码访问安全性(CAS)已在 .NET Framework 和 .NET 的所有版本中弃用。 如果使用与 CAS 相关的 API,最新版本的 .NET 不会遵循 CAS 注释,并会生成错误。 开发人员应寻求完成安全任务的替代方法。
安全性提供访问和操作安全策略配置的方法。 不能创建SecurityManager的实例。
属性
| 名称 | 说明 |
|---|---|
| CheckExecutionRights |
已过时.
已过时.
获取或设置一个值,该值指示代码是否必须有 Execution 才能执行。 |
| SecurityEnabled |
已过时.
已过时.
已过时.
获取或设置一个值,该值指示是否启用安全性。 |