ApplicationAccessControlAttribute::ImpersonationLevel Property

 

Gets or sets the impersonation level that is allowed for calling targets of this application.

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

public:
property ImpersonationLevelOption ImpersonationLevel {
	ImpersonationLevelOption get();
	void set(ImpersonationLevelOption value);
}

This property is supported only on Windows 2000 and later.

The following code example demonstrates the use of this property.

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