Reflection gives your executing code access to internal class information.
反射使执行代码能够访问内部类信息。
You can also take advantage of the code access security that's built into the CLR.
还可利用内建在 CLR中的代码访问安全性。
Along the way you get the benefits of the managed environment in which a fully compiled.net-based application executes, including code access security.
通过该方法,您可以受益于托管环境,在该环境中执行完全编译的基于. NET的应用程序,其中包括代码访问安全性。
In order to set the context, the variable self is set to the instance while the code is executing, giving the code access to the instance's variables.
为了设定代码执行的上下文,self变量要设置为执行代码时所在的对象实例,以使得代码可以访问对象实例的变量。
You can also use the security Settings link on this page to bypass the wizard's default offer to set up the necessary code access security for your project.
也可使用该页面上的SecuritySettings链接以不使用向导提供的默认值,来为项目设置必要的代码访问安全性。
The runtime enforces code access security.
运行时强制实施代码访问安全。
This further demonstrates the real flexibility of code access security.
这个例子演示了代码访问安全的灵活性。
When code access security is disabled, all code access demands succeed.
当禁用代码访问安全性时,所有代码访问要求都会成功。
Allows control of code access security permissions for service controllers.
允许声明性的服务控制器权限检查。
A host can control all code access to thread tokens by both the CLR and user code.
宿主可控制CLR和用户代码对线程标记的所有代码访问。
Provides an overview of basic administration concepts related to code access security.
提供与代码访问安全性相关的基本管理概念的概述。
Role-based security checks have slightly different semantics than code access security checks.
基于角色的安全检查与代码访问安全检查在语义上稍有不同。
Configures the code access security permission set that is used to run a particular application.
配置用于运行特定应用程序的代码访问安全权限集。
However, in some situations, it might make sense to define your own code access permission class.
但在某些情况下,定义自己的代码访问权限类可能会有用。
Implementing a custom code access permission involves the following steps, some of which are optional.
实现自定义代码访问权限包括下列步骤,其中的一些步骤是可选的。
Improperly administering code access security (CAS) policy can potentially create security weaknesses.
不正确管理代码访问安全性(CAS)策略可能会导致安全漏洞。
Disabling code access security makes the system vulnerable to attacks by malicious code such as viruses and worms.
禁用代码访问安全性会使系统容易受到恶意代码(如病毒和蠕虫)的攻击。
Using code access security can reduce the likelihood that your code will be misused by malicious or error-filled code.
使用代码访问安全性,可以减小恶意代码或包含错误的代码滥用您的代码的可能性。
If you design class libraries, you need to understand code access security and be careful to secure your class library.
如果设计类库,则需要了解代码访问安全性,并仔细地保护您的类库。
For example, a local application that has the code access security permission might not have operating system permission.
例如,具有代码访问安全性权限的本地应用程序可能不具有操作系统权限。
If you apply a CLR code access security attribute outside a parallel region, it won't be in effect in the parallel region.
如果在并行区域外部应用CLR代码访问安全性特性,它在并行区域内将无效。
Assemblies that use earlier code access security rules (level 1) can call level 2 security-critical types and members if they are full trusted.
如果使用早期代码访问安全性规则(级别1)的程序集完全受信任,则可以调用级别2安全关键类型和成员。
Full-trust applications are not affected by code access security unless they are marked as security-transparent, because they are fully trusted.
除非完全信任的应用程序标记为安全-透明,否则它们不受代码访问安全性的影响,因为它们是完全受信任的。
It can also ensure that complete security context information is passed across asynchronous operations or code points with restricted code access.
宿主还可确保在异步操作或代码访问受限制的码位间传递完整的安全性上下文信息。
Also, you cannot use code access configuration to limit access for control designers since they must always run in the design host with full trust.
此外,不能使用代码访问配置来限制对控件设计器的访问,因为这些设计器必须总是以完全信任级别运行在设计宿主中。
If so, you must protect the directory containing these files, using code access security or an access Control List in the file system, as appropriate.
如果存在,则必须相应地使用文件系统中的代码访问安全机制或访问控制列表,来保护包含这些文件的目录。
When compiling a XAML file, you can use public types, but you can also use internal types subject to the same limitations that exist on code access to internal types.
在编译XAML文件时,可以使用公共类型,但也可以使用内部类型,但代码对内部类型的访问存在相同的限制。
At load time, the code access security system examines all policy levels and the resulting permission grant is the intersection of all allowed permissions in each level.
在载入时间,程序码存取安全系统会检查所有原则层级,产生的使用权限授权是每一个层级中所有允许的使用权限的交集。
When a built-in code access permission class protects a resource but does not sufficiently control access to that resource, you might need a custom code access permission.
如果内置代码访问权限类保护一种资源但不能充分控制对该资源的访问,则您可能需要使用自定义代码访问权限。
The common language runtime (CLR) provides a type-safe environment for code to run in, with code access security (CAS) to restrict further the permissions of managed code.
公共语言运行库(CLR)提供了供代码在其中运行的类型安全环境,以及用于进一步限制托管代码权限的代码访问安全性(CAS)。
应用推荐