Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

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:
© 2017 Microsoft