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