AccessChecksLevelOption Enum

Definition

Specifies the level of access checking for an application, either at the process level only or at all levels, including component, interface, and method levels.

C#
[System.Serializable]
public enum AccessChecksLevelOption
Inheritance
AccessChecksLevelOption
Attributes

Fields

Name Value Description
Application 0

Enables access checks only at the process level. No access checks are made at the component, interface, or method level.

ApplicationComponent 1

Enables access checks at every level on calls into the application.

Examples

The following code example demonstrates the use of this enumeration in conjunction with the ApplicationAccessControlAttribute attribute.

C#
// Set component access controls.
[assembly: ApplicationAccessControl(Authentication=AuthenticationOption.Privacy,
                                    ImpersonationLevel=ImpersonationLevelOption.Identify,
                                    AccessChecksLevel=AccessChecksLevelOption.ApplicationComponent)]

Applies to

Product Versions
.NET Framework 1.1, 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1