Editare

Partajați prin


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.

public enum class AccessChecksLevelOption
[System.Serializable]
public enum AccessChecksLevelOption
[<System.Serializable>]
type AccessChecksLevelOption = 
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.

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

Applies to