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

IsConnectionError() 공개 정적인 메소드

Determines whether the specified exception represents a connection error.
public static IsConnectionError ( this exception ) : bool
exception this The exception.
리턴 bool
        public static bool IsConnectionError(this SqlException exception)
        {
            Contract.Requires(exception != null);

            return IsNamedPipeConnectionError(exception) ||
                   IsTcpIpConnectionError(exception);
        }