System.Net.Security.NegoState.IsLogonDeniedException C# (CSharp) Method

IsLogonDeniedException() static private method

static private IsLogonDeniedException ( Exception exception ) : bool
exception Exception
return bool
        internal static bool IsLogonDeniedException(Exception exception)
        {
            Win32Exception win32exception = exception as Win32Exception;

            return (win32exception != null) && (win32exception.NativeErrorCode == (int)SecurityStatusPalErrorCode.LogonDenied);
        }
    }