System.Data.SqlClient.SqlExceptionExtensions.IsServiceQueueDisabled C# (CSharp) 메소드

IsServiceQueueDisabled() 공개 정적인 메소드

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

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