共用方式為


ApplicationAccessControlAttribute.AccessChecksLevel 屬性

定義

取得或設定處理序層級或元件層級的存取檢查層級。

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

屬性值

其中一個 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 和更新版本才支援此屬性。

適用於