NotInTransactionException クラス

SQL サーバーへの接続で、トランザクション中にエラーが発生した場合に生成される例外です。

継承階層

System.Object
  System.Exception
    System.SystemException
      Microsoft.SqlServer.Management.Common.ConnectionException
        Microsoft.SqlServer.Management.Common.NotInTransactionException

名前空間:  Microsoft.SqlServer.Management.Common
アセンブリ:  Microsoft.SqlServer.ConnectionInfo (Microsoft.SqlServer.ConnectionInfo.dll)

構文

'宣言
<SerializableAttribute> _
Public NotInheritable Class NotInTransactionException _
    Inherits ConnectionException
'使用
Dim instance As NotInTransactionException
[SerializableAttribute]
public sealed class NotInTransactionException : ConnectionException
[SerializableAttribute]
public ref class NotInTransactionException sealed : public ConnectionException
[<SealedAttribute>]
[<SerializableAttribute>]
type NotInTransactionException =  
    class 
        inherit ConnectionException 
    end
public final class NotInTransactionException extends ConnectionException

NotInTransactionException 型は、以下のメンバーを公開しています。

コンストラクター

  名前 説明
パブリック メソッド NotInTransactionException() NotInTransactionException クラスの新しいインスタンスを初期化します。
パブリック メソッド NotInTransactionException(String) 指定されたメッセージ テキストを使用して、NotInTransactionException クラスの新しいインスタンスを初期化します。
パブリック メソッド NotInTransactionException(String, Exception) 指定されたメッセージ テキストと内部例外を使用して、NotInTransactionException クラスの新しいインスタンスを初期化します。

先頭に戻る

プロパティ

  名前 説明
パブリック プロパティ Data (Exception から継承されています。)
パブリック プロパティ HelpLink (Exception から継承されています。)
パブリック プロパティ HResult (Exception から継承されています。)
パブリック プロパティ InnerException (Exception から継承されています。)
パブリック プロパティ Message (Exception から継承されています。)
パブリック プロパティ Source (Exception から継承されています。)
パブリック プロパティ StackTrace (Exception から継承されています。)
パブリック プロパティ TargetSite (Exception から継承されています。)

先頭に戻る

メソッド

  名前 説明
パブリック メソッド Equals (Object から継承されています。)
パブリック メソッド GetBaseException (Exception から継承されています。)
パブリック メソッド GetHashCode (Object から継承されています。)
パブリック メソッド GetObjectData セキュリティ クリティカル。 (Exception から継承されています。)
パブリック メソッド GetType (Exception から継承されています。)
パブリック メソッド ToString (Exception から継承されています。)

先頭に戻る

説明

スレッド セーフ

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

使用例

SMO 例外の処理

スレッド セーフ

この型の public static (Visual Basic では Shared) のメンバーはすべて、スレッド セーフです。インスタンス メンバーの場合は、スレッド セーフであるとは限りません。

関連項目

参照

Microsoft.SqlServer.Management.Common 名前空間