WindowsIdentity::RunImpersonated Method

.NET Framework (current version)
 

Namespace:   System.Security.Principal
Assembly:  mscorlib (in mscorlib.dll)

NameDescription
System_CAPS_pubmethodSystem_CAPS_staticRunImpersonated(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.

System_CAPS_pubmethodSystem_CAPS_staticRunImpersonated<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.

Return to top
Show: