WindowsIdentity::RunImpersonated Method
.NET Framework (current version)
Namespace:
System.Security.Principal
Assembly: mscorlib (in mscorlib.dll)
| Name | Description | |
|---|---|---|
![]() ![]() | RunImpersonated(SafeAccessTokenHandle^, Action^) | Runs the specified action as the impersonated Windows identity. Instead of using an impersonated method call and running your function in WindowsImpersonationContext, you can use RunImpersonated and provide your function directly as a parameter. |
![]() ![]() | RunImpersonated<T>(SafeAccessTokenHandle^, Func<T>^) | Runs the specified function as the impersonated Windows identity. Instead of using an impersonated method call and running your function in WindowsImpersonationContext, you can use RunImpersonated and provide your function directly as a parameter. |
Show:

