Επεξεργασία

Κοινή χρήση μέσω


ApplicationAccessControlAttribute Constructors

Definition

Initializes a new instance of the ApplicationAccessControlAttribute class.

Overloads

ApplicationAccessControlAttribute()

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

ApplicationAccessControlAttribute(Boolean)

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

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

Applies to

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

true to allow configuration of security; otherwise, false.

Applies to