Base:
23 references to IsInvalid
System.Security.Principal.Windows (23)
System\Security\Principal\WindowsIdentity.cs (22)
79
if (!identity._safeTokenHandle.
IsInvalid
&& identity._safeTokenHandle.DangerousGetHandle() != IntPtr.Zero)
83
if (!identity._safeTokenHandle.
IsInvalid
&& identity._safeTokenHandle.DangerousGetHandle() != IntPtr.Zero)
296
if (accessToken.
IsInvalid
)
382
if (_safeTokenHandle.
IsInvalid
)
423
if (_safeTokenHandle.
IsInvalid
)
472
if (_safeTokenHandle.
IsInvalid
)
521
if (_safeTokenHandle.
IsInvalid
)
538
if (_safeTokenHandle.
IsInvalid
)
555
if (_safeTokenHandle.
IsInvalid
)
578
if (_safeTokenHandle.
IsInvalid
)
600
if (_safeTokenHandle.
IsInvalid
)
620
if (_safeTokenHandle.
IsInvalid
)
640
if (_safeTokenHandle.
IsInvalid
)
756
if (previousToken == null || previousToken.
IsInvalid
)
784
if (!token.
IsInvalid
&& !Interop.Advapi32.ImpersonateLoggedOnUser(token))
802
if (args.CurrentValue != null && !args.CurrentValue.
IsInvalid
)
812
if (safeTokenHandle == null || safeTokenHandle.
IsInvalid
)
889
Debug.Assert(!_safeTokenHandle.
IsInvalid
&& !_safeTokenHandle.IsClosed, "!m_safeTokenHandle.IsInvalid && !m_safeTokenHandle.IsClosed");
1086
if (_safeTokenHandle.
IsInvalid
)
1156
if (_safeTokenHandle.
IsInvalid
)
1190
if (_safeTokenHandle.
IsInvalid
)
1242
if (_safeTokenHandle.
IsInvalid
)
System\Security\Principal\WindowsPrincipal.cs (1)
143
if (_identity.AccessToken.
IsInvalid
)