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

◆ ImpersonationLevel

TokenImpersonationLevel System.Security.Principal.WindowsIdentity.ImpersonationLevel
get

Definition at line 94 of file WindowsIdentity.cs.

95 {
96 get
97 {
99 {
100 TokenImpersonationLevel tokenImpersonationLevel = TokenImpersonationLevel.None;
102 {
103 tokenImpersonationLevel = TokenImpersonationLevel.Anonymous;
104 }
105 else
106 {
108 if (tokenInformation == TokenType.TokenPrimary)
109 {
110 tokenImpersonationLevel = TokenImpersonationLevel.None;
111 }
112 else
113 {
116 }
117 }
120 }
121 return _impersonationLevel;
122 }
123 }
volatile TokenImpersonationLevel _impersonationLevel

Referenced by System.Security.Principal.WindowsIdentity.CheckNtTokenForSid(), and System.Security.Principal.WindowsPrincipal.IsInRole().