解释如何将宣告式安全性属性套用到动态组件中的型别和成员,以及套用到动态组件本身。
Explains how to apply declarative security attributes to types and members in dynamic assemblies, and to dynamic assemblies themselves.
安全性权限可在表单中的使用权限类别(命令式安全性)或属性,表示使用权限类别(宣告式安全性)。
Security permissions can be in the form of a permission class (imperative security) or an attribute that represents a permission class (declarative security).
这对宣告式安全性来说是必要的,因为属性会在组件载入时执行,而该属性的参考发生时,属性可能尚未建立。
This is mandatory for declarative security, because the attribute is executed when the assembly is loaded, and the attribute may not have been created at the time the reference to it is encountered.
应用推荐