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)
299
if (accessToken.
IsInvalid
)
385
if (_safeTokenHandle.
IsInvalid
)
426
if (_safeTokenHandle.
IsInvalid
)
475
if (_safeTokenHandle.
IsInvalid
)
524
if (_safeTokenHandle.
IsInvalid
)
541
if (_safeTokenHandle.
IsInvalid
)
558
if (_safeTokenHandle.
IsInvalid
)
581
if (_safeTokenHandle.
IsInvalid
)
603
if (_safeTokenHandle.
IsInvalid
)
623
if (_safeTokenHandle.
IsInvalid
)
643
if (_safeTokenHandle.
IsInvalid
)
759
if (previousToken == null || previousToken.
IsInvalid
)
787
if (!token.
IsInvalid
&& !Interop.Advapi32.ImpersonateLoggedOnUser(token))
805
if (args.CurrentValue != null && !args.CurrentValue.
IsInvalid
)
815
if (safeTokenHandle == null || safeTokenHandle.
IsInvalid
)
892
Debug.Assert(!_safeTokenHandle.
IsInvalid
&& !_safeTokenHandle.IsClosed, "!m_safeTokenHandle.IsInvalid && !m_safeTokenHandle.IsClosed");
1089
if (_safeTokenHandle.
IsInvalid
)
1159
if (_safeTokenHandle.
IsInvalid
)
1193
if (_safeTokenHandle.
IsInvalid
)
1245
if (_safeTokenHandle.
IsInvalid
)
System\Security\Principal\WindowsPrincipal.cs (1)
143
if (_identity.AccessToken.
IsInvalid
)