ConnectionException 클래스

The ConnectionException class is an exception that is raised when an error occurs on the connection to the instance of SQL Server.

상속 계층

System.Object
  System.Exception
    System.SystemException
      Microsoft.SqlServer.Management.Common.ConnectionException
        추가 정보...

네임스페이스:  Microsoft.SqlServer.Management.Common
어셈블리:  Microsoft.SqlServer.ConnectionInfo(Microsoft.SqlServer.ConnectionInfo.dll)

구문

‘선언
<SerializableAttribute> _
Public Class ConnectionException _
    Inherits SystemException
‘사용 방법
Dim instance As ConnectionException
[SerializableAttribute]
public class ConnectionException : SystemException
[SerializableAttribute]
public ref class ConnectionException : public SystemException
[<SerializableAttribute>]
type ConnectionException =  
    class 
        inherit SystemException 
    end
public class ConnectionException extends SystemException

ConnectionException 유형에서 다음 멤버를 표시합니다.

생성자

  이름 설명
공용 메서드 ConnectionException() Initializes a new instance of the ConnectionException class.
공용 메서드 ConnectionException(String) Initializes a new instance of the ConnectionException class with the specified message text.
보호된 메서드 ConnectionException(SerializationInfo, StreamingContext) Initializes a new instance of the ConnectionException class with the specified serialization information and streaming context.
공용 메서드 ConnectionException(String, Exception) Initializes a new instance of the ConnectionException class with the specified message text and inner exception.

맨 위로 이동

속성

  이름 설명
공용 속성 Data (Exception에서 상속됨)
공용 속성 HelpLink (Exception에서 상속됨)
공용 속성 HResult (Exception에서 상속됨)
공용 속성 InnerException (Exception에서 상속됨)
공용 속성 Message (Exception에서 상속됨)
공용 속성 Source (Exception에서 상속됨)
공용 속성 StackTrace (Exception에서 상속됨)
공용 속성 TargetSite (Exception에서 상속됨)

맨 위로 이동

메서드

  이름 설명
공용 메서드 Equals (Object에서 상속됨)
보호된 메서드 Finalize (Object에서 상속됨)
공용 메서드 GetBaseException (Exception에서 상속됨)
공용 메서드 GetHashCode (Object에서 상속됨)
공용 메서드 GetObjectData 보안에 중요합니다. (Exception에서 상속됨)
공용 메서드 GetType (Exception에서 상속됨)
보호된 메서드 MemberwiseClone (Object에서 상속됨)
공용 메서드 ToString (Exception에서 상속됨)

맨 위로 이동

이벤트

  이름 설명
보호된 이벤트 SerializeObjectState (Exception에서 상속됨)

맨 위로 이동

주의

Thread Safety

이 유형의 모든 public static(Microsoft Visual Basic의 경우 공유) 멤버는 다중 스레드 작업을 수행하기에 안전합니다. 인스턴스 멤버는 스레드로부터의 안전성이 보장되지 않습니다.

SMO 예외 처리

스레드 보안

이 유형의 모든 공용 static(Visual Basic에서는 Shared) 멤버는 스레드로부터 안전합니다. 인스턴스 멤버는 스레드로부터의 안전성이 보장되지 않습니다.

참고 항목

참조

Microsoft.SqlServer.Management.Common 네임스페이스

상속 계층

System.Object
  System.Exception
    System.SystemException
      Microsoft.SqlServer.Management.Common.ConnectionException
        Microsoft.SqlServer.Management.Common.ChangePasswordFailureException
        Microsoft.SqlServer.Management.Common.ConnectionCannotBeChangedException
        Microsoft.SqlServer.Management.Common.ConnectionFailureException
        Microsoft.SqlServer.Management.Common.DisconnectedConnectionException
        Microsoft.SqlServer.Management.Common.ExecutionFailureException
        Microsoft.SqlServer.Management.Common.InvalidArgumentException
        Microsoft.SqlServer.Management.Common.InvalidPropertyValueException
        Microsoft.SqlServer.Management.Common.NotInTransactionException
        Microsoft.SqlServer.Management.Common.PropertyNotAvailableException
        Microsoft.SqlServer.Management.Common.PropertyNotSetException