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

◆ GetName()

string System.Security.Principal.WindowsIdentity.GetName ( )
inlinepackage

Definition at line 562 of file WindowsIdentity.cs.

563 {
565 {
566 return string.Empty;
567 }
568 if (_name == null)
569 {
571 {
572 NTAccount nTAccount = User.Translate(typeof(NTAccount)) as NTAccount;
573 _name = nTAccount.ToString();
574 });
575 }
576 return _name;
577 }
static void RunImpersonated(SafeAccessTokenHandle safeAccessTokenHandle, Action action)

References System.Security.Principal.WindowsIdentity._name, System.Security.Principal.WindowsIdentity._safeTokenHandle, Microsoft.Win32.SafeHandles.SafeAccessTokenHandle.InvalidHandle, Microsoft.Win32.SafeHandles.SafeAccessTokenHandle.IsInvalid, and System.Security.Principal.WindowsIdentity.RunImpersonated().