ApplicationAccessControlAttribute Constructor ()

 

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

Namespace:   System.EnterpriseServices
Assembly:  System.EnterpriseServices (in System.EnterpriseServices.dll)

public:
ApplicationAccessControlAttribute()

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

.NET Framework
Available since 1.1
Return to top
Show: