ApplicationAccessControlAttribute.ImpersonationLevel Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets or sets the impersonation level that is allowed for calling targets of this application.
public:
property System::EnterpriseServices::ImpersonationLevelOption ImpersonationLevel { System::EnterpriseServices::ImpersonationLevelOption get(); void set(System::EnterpriseServices::ImpersonationLevelOption value); };
public System.EnterpriseServices.ImpersonationLevelOption ImpersonationLevel { get; set; }
member this.ImpersonationLevel : System.EnterpriseServices.ImpersonationLevelOption with get, set
Public Property ImpersonationLevel As ImpersonationLevelOption
Property Value
One of the ImpersonationLevelOption values.
Examples
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)];
// 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)>
Remarks
This property is supported only on Windows 2000 and later.
Applies to
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.