csharp:impersonateusercontext
Unterschiede
Hier werden die Unterschiede zwischen zwei Versionen angezeigt.
Nächste Überarbeitung | Vorhergehende Überarbeitung | ||
csharp:impersonateusercontext [2016/07/11 13:26] – angelegt ronny | csharp:impersonateusercontext [2016/07/11 13:27] (aktuell) – ronny | ||
---|---|---|---|
Zeile 1: | Zeile 1: | ||
====== Impersonate usercontext ====== | ====== Impersonate usercontext ====== | ||
- | <codde csharp> | + | <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(); | ||
Zeile 7: | Zeile 7: | ||
</ | </ | ||
- | {{tag>[dotNET | + | {{tag>[CSharp |
csharp/impersonateusercontext.txt · Zuletzt geändert: 2016/07/11 13:27 von ronny