ApplicationAccessControlAttribute.AccessChecksLevel 属性
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
获取访问检查级别或将访问检查级别设置为进程级别或组件级别。
public:
property System::EnterpriseServices::AccessChecksLevelOption AccessChecksLevel { System::EnterpriseServices::AccessChecksLevelOption get(); void set(System::EnterpriseServices::AccessChecksLevelOption value); };
public System.EnterpriseServices.AccessChecksLevelOption AccessChecksLevel { get; set; }
member this.AccessChecksLevel : System.EnterpriseServices.AccessChecksLevelOption with get, set
Public Property AccessChecksLevel As AccessChecksLevelOption
属性值
示例
下面的代码示例演示如何使用此属性。
// Set component access controls.
[assembly:ApplicationAccessControl(Authentication=AuthenticationOption::Privacy,
ImpersonationLevel=ImpersonationLevelOption::Identify,
AccessChecksLevel=AccessChecksLevelOption::ApplicationComponent)];
// Set component access controls.
[assembly: ApplicationAccessControl(Authentication=AuthenticationOption.Privacy,
ImpersonationLevel=ImpersonationLevelOption.Identify,
AccessChecksLevel=AccessChecksLevelOption.ApplicationComponent)]
' Set component access controls.
<Assembly: ApplicationAccessControl(Authentication:=AuthenticationOption.Privacy, ImpersonationLevel:=ImpersonationLevelOption.Identify, AccessChecksLevel:=AccessChecksLevelOption.ApplicationComponent)>
注解
此属性仅在 Windows 2000 及更高版本上受支持。