ApplicationAccessControlAttribute ApplicationAccessControlAttribute ApplicationAccessControlAttribute ApplicationAccessControlAttribute Constructors

Definition

Overloads

ApplicationAccessControlAttribute() ApplicationAccessControlAttribute() ApplicationAccessControlAttribute()

Initializes a new instance of the ApplicationAccessControlAttribute class, enabling the COM+ security configuration.

ApplicationAccessControlAttribute(Boolean) ApplicationAccessControlAttribute(Boolean) ApplicationAccessControlAttribute(Boolean) ApplicationAccessControlAttribute(Boolean)

Initializes a new instance of the ApplicationAccessControlAttribute class and sets the Value property indicating whether to enable COM security configuration.

ApplicationAccessControlAttribute() ApplicationAccessControlAttribute() ApplicationAccessControlAttribute()

Initializes a new instance of the ApplicationAccessControlAttribute class, enabling the COM+ security configuration.

public:
 ApplicationAccessControlAttribute();
public ApplicationAccessControlAttribute ();
Public Sub New ()

Examples

The following code example demonstrates the use of this attribute to control access to an assembly containing ServicedComponent classes.

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

ApplicationAccessControlAttribute(Boolean) ApplicationAccessControlAttribute(Boolean) ApplicationAccessControlAttribute(Boolean) ApplicationAccessControlAttribute(Boolean)

Initializes a new instance of the ApplicationAccessControlAttribute class and sets the Value property indicating whether to enable COM security configuration.

public:
 ApplicationAccessControlAttribute(bool val);
public ApplicationAccessControlAttribute (bool val);
new System.EnterpriseServices.ApplicationAccessControlAttribute : bool -> System.EnterpriseServices.ApplicationAccessControlAttribute
Public Sub New (val As Boolean)

Parameters

val
Boolean Boolean Boolean Boolean

true to allow configuration of security; otherwise, false.

Applies to