System.Net.Security.NegoState.IsLogonDeniedException C# (CSharp) Метод

IsLogonDeniedException() статический приватный Метод

static private IsLogonDeniedException ( Exception exception ) : bool
exception Exception
Результат bool
        internal static bool IsLogonDeniedException(Exception exception)
        {
            Win32Exception win32exception = exception as Win32Exception;

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