Bagikan melalui


ApplicationAccessControlAttribute.AccessChecksLevel Properti

Definisi

Mendapatkan atau mengatur tingkat pemeriksaan akses ke tingkat proses atau ke tingkat komponen.

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

Nilai Properti

Salah AccessChecksLevelOption satu nilai.

Contoh

Contoh kode berikut menunjukkan penggunaan properti ini.

// 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)>

Keterangan

Properti ini hanya didukung pada Windows 2000 dan yang lebih baru.

Berlaku untuk