Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ RunImpersonated< T >()

static T System.Security.Principal.WindowsIdentity.RunImpersonated< T > ( SafeAccessTokenHandle safeAccessTokenHandle,
Func< T > func )
inlinestatic

Definition at line 588 of file WindowsIdentity.cs.

589 {
591 if (func2 == null)
592 {
593 throw new ArgumentNullException("func");
594 }
595 T result = default(T);
597 {
598 result = func2();
599 });
600 return result;
601 }
static void RunImpersonatedInternal(SafeAccessTokenHandle token, Action action)

References System.Runtime.Serialization.Dictionary, and System.Security.Principal.WindowsIdentity.RunImpersonatedInternal().