.NET Framework 中的安全性更改Security Changes in the .NET Framework

到.NET Framework 4.5 中的安全性最重要的更改是强命名。The most important change to security in the .NET Framework 4.5 is in strong naming. 有关这些更改的说明,请参阅 Enhanced Strong NamingSee Enhanced Strong Naming for a description of those changes.

.NET Framework 为托管应用程序提供两层安全模型。The .NET Framework provides a two-tier security model for managed applications. Windows 8.x 应用商店Windows 8.x Store 应用程序在限制访问资源的 Windows 安全容器中运行。apps run in a Windows security container that limits access to resources. 在该容器中,托管应用程序以完全信任方式运行。Within that container, managed applications run fully trusted. 从代码访问安全性 (CAS) 角度看,开发人员不可执行任何将提升特权的操作。From a code access security (CAS) perspective, there is nothing a developer can do to elevate privileges. 有关 Windows 授予的特权的信息,请参阅 Windows 开发人员中心的 应用功能声明(Windows 应用商店应用)For information about the privileges granted by Windows, see App capability declarations (Windows Store apps) in the Windows Dev Center. 有关创建 Windows 8.x 应用商店Windows 8.x Store 应用的信息,请参阅 使用 C# 或 Visual Basic 创建第一个 Windows 应用商店应用For information about creating a Windows 8.x 应用商店Windows 8.x Store app, see Create your first Windows Store app using C# or Visual Basic.