Redigera

Dela via


ApplicationAccessControlAttribute.AccessChecksLevel Property

Definition

Gets or sets the access checking level to process level or to component level.

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

Property Value

One of the AccessChecksLevelOption values.

Examples

The following code example demonstrates the use of this property.

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

Remarks

This property is supported only on Windows 2000 and later.

Applies to