System.Data.SqlClient.SqlExceptionExtensions.IsServiceQueueDisabled C# (CSharp) Méthode

IsServiceQueueDisabled() public static méthode

The service queue "x" is currently disabled.
public static IsServiceQueueDisabled ( this exception ) : bool
exception this The exception.
Résultat bool
        public static bool IsServiceQueueDisabled(this SqlException exception)
        {
            Contract.Requires(exception != null);

            // 9617 -> The service queue "%.*ls" is currently disabled.
            return exception.Number == 9617;
        }