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