AccessChecksLevelOption Enum
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.
public enum class AccessChecksLevelOption
[System.Serializable]
public enum AccessChecksLevelOption
[<System.Serializable>]
type AccessChecksLevelOption =
Public Enum AccessChecksLevelOption
- Inheritance
- 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.
// 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)>