ConnectionException クラス

ConnectionException クラスは、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() ConnectionException クラスの新しいインスタンスを初期化します。
パブリック メソッド ConnectionException(String) 指定されたメッセージ テキストを使用して、ConnectionException クラスの新しいインスタンスを初期化します。
プロテクト メソッド ConnectionException(SerializationInfo, StreamingContext) 指定されたシリアル化情報とストリーム コンテキストを使用して、ConnectionException クラスの新しいインスタンスを初期化します。
パブリック メソッド ConnectionException(String, Exception) 指定されたメッセージ テキストと内部例外を使用して、ConnectionException クラスの新しいインスタンスを初期化します。

先頭に戻る

プロパティ

  名前 説明
パブリック プロパティ 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 から継承されています。)

先頭に戻る

説明

スレッド セーフ

この型の public static (Microsoft Visual Basic では Shared) のすべてのメンバーは、マルチスレッド操作で安全に使用できます。インスタンス メンバーの場合は、スレッド セーフであるとは限りません。

使用例

SMO 例外の処理

スレッド セーフ

この型の public 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