csharp:impersonateusercontext
Unterschiede
Hier werden die Unterschiede zwischen zwei Versionen angezeigt.
Beide Seiten der vorigen RevisionVorhergehende Überarbeitung | |||
csharp:impersonateusercontext [2016/07/11 13:27] – ronny | csharp:impersonateusercontext [2016/07/11 13:27] (aktuell) – ronny | ||
---|---|---|---|
Zeile 1: | Zeile 1: | ||
====== Impersonate usercontext ====== | ====== Impersonate usercontext ====== | ||
- | <codde c#> | + | <code csharp> |
System.Security.Principal.WindowsImpersonationContext impersonationContext; | System.Security.Principal.WindowsImpersonationContext impersonationContext; | ||
impersonationContext = ((System.Security.Principal.WindowsIdentity)User.Identity).Impersonate(); | impersonationContext = ((System.Security.Principal.WindowsIdentity)User.Identity).Impersonate(); |
csharp/impersonateusercontext.txt · Zuletzt geändert: 2016/07/11 13:27 von ronny