Base:
property
IsInvalid
System.Runtime.InteropServices.SafeHandle.IsInvalid
31 references to IsInvalid
mscorlib (31)
system\security\accesscontrol\privilege.cs (2)
198if ( processHandle.IsInvalid) 202if ( processHandle.IsInvalid)
system\security\framesecuritydescriptor.cs (1)
206if (m_callerToken != null && !m_callerToken.IsInvalid)
system\security\principal\windowsidentity.cs (23)
303if (m_safeTokenHandle.IsInvalid) 342if (m_safeTokenHandle.IsInvalid) { 399if (m_safeTokenHandle.IsInvalid) 445if (m_safeTokenHandle.IsInvalid) 463if (m_safeTokenHandle.IsInvalid) 475if (m_safeTokenHandle.IsInvalid) 501if (m_safeTokenHandle.IsInvalid) 522if (m_safeTokenHandle.IsInvalid) 540if (m_safeTokenHandle.IsInvalid) 557if (m_safeTokenHandle.IsInvalid) 622if (!safeAccessTokenHandle.IsInvalid) 642if (!safeAccessTokenHandle.IsInvalid) 681if (m_safeTokenHandle.IsInvalid) 731if (safeTokenHandle == null || safeTokenHandle.IsInvalid) 745if (userToken.IsInvalid) { // impersonating a zero token means clear the token on the thread 805if (safeTokenHandle == null || safeTokenHandle.IsInvalid) { 886Contract.Assert(!m_safeTokenHandle.IsInvalid && !m_safeTokenHandle.IsClosed, "!m_safeTokenHandle.IsInvalid && !m_safeTokenHandle.IsClosed"); 1165if (!identity.m_safeTokenHandle.IsInvalid && identity.m_safeTokenHandle != SafeAccessTokenHandle.InvalidHandle && identity.m_safeTokenHandle.DangerousGetHandle() != IntPtr.Zero) 1169if (!identity.m_safeTokenHandle.IsInvalid && identity.m_safeTokenHandle.DangerousGetHandle() != IntPtr.Zero) 1324if (m_safeTokenHandle.IsInvalid) 1374if (m_safeTokenHandle.IsInvalid) 1438if (m_safeTokenHandle.IsInvalid) 1469if (m_safeTokenHandle.IsInvalid)
system\security\principal\windowsimpersonationcontext.cs (3)
43if (safeTokenHandle.IsInvalid) 67if (m_safeTokenHandle.IsInvalid) { // the thread was not initially impersonating 99if (m_safeTokenHandle.IsInvalid)
system\security\principal\windowsprincipal.cs (1)
235if (m_identity.AccessToken.IsInvalid)
system\security\securitycontext.cs (1)
684if (tokenHandle != null && !tokenHandle.IsInvalid)