SqlCeTransactionInProgressExceptionとは? わかりやすく解説

Weblio 辞書 > コンピュータ > .NET Framework クラス ライブラリ リファレンス > SqlCeTransactionInProgressExceptionの意味・解説 

SqlCeTransactionInProgressException クラス

別のトランザクションの進行中に、データベースを変更しようとすると、発生します。

名前空間: System.Data.SqlServerCe
アセンブリ: System.Data.SqlServerCe (system.data.sqlserverce.dll 内)
構文構文

Public Class SqlCeTransactionInProgressException
    Inherits SqlCeException
Dim instance As SqlCeTransactionInProgressException
public class SqlCeTransactionInProgressException
 : SqlCeException
public ref class SqlCeTransactionInProgressException
 : public SqlCeException
public class SqlCeTransactionInProgressException
 extends SqlCeException
public class SqlCeTransactionInProgressException
 extends SqlCeException
使用例使用例
Dim timeout As New TimeSpan(0,
 0, 15) 'hours, minutes, seconds
Dim startTime As DateTime = DateTime.Now

While DateTime.Now - startTime < timeout
    Try
        Dim repl As New
 SqlCeReplication()

        repl.InternetUrl = "http://www.adventure-works.com/sqlmobile/sqlcesa30.dll"
        repl.Publisher = "myPublisher"
        repl.PublisherDatabase = "AdventureWorks"
        repl.PublisherSecurityMode = SecurityType.NTAuthentication
        repl.Publication = "AdventureWorks"
        repl.Subscriber = "Test"
        repl.SubscriberConnectionString = "Data Source='MyDatabase.sdf';Password='';"
        repl.Synchronize()
    Catch exInProgress As SqlCeTransactionInProgressException
        Thread.Sleep(3000)
        GoTo ContinueWhile1
    Catch exTimeout As SqlCeLockTimeoutException
        ' Add your own error-handling logic here
         GoTo ContinueWhile1
    Catch e As SqlCeException
        MessageBox.Show(e.Message)
    End Try
ContinueWhile1:
End While
TimeSpan timeout = new TimeSpan(0 /*hours*/, 0 /* minutes */ ,
 15 /*seconds*/);
DateTime startTime = DateTime.Now;

while (DateTime.Now - startTime < timeout)
{
    try
    {
        SqlCeReplication repl = new SqlCeReplication();

        repl.InternetUrl = "http://www.adventure-works.com/sqlmobile/sqlcesa30.dll";
        repl.Publisher = "myPublisher";
        repl.PublisherDatabase = "AdventureWorks";
        repl.PublisherSecurityMode = SecurityType.NTAuthentication;
        repl.Publication = "AdventureWorks";
        repl.Subscriber = "Test";
        repl.SubscriberConnectionString = "Data Source='MyDatabase.sdf';Password='';";
        repl.Synchronize();
    }
    catch (SqlCeTransactionInProgressException)
    {
        Thread.Sleep(3000);
        continue;
    }
    catch (SqlCeLockTimeoutException)
    {
        //add your own error-handling logic here
    }
    catch (SqlCeException e)
    {
        MessageBox.Show(e.Message);
    }
}
継承階層継承階層
System.Object
   System.Exception
     System.SystemException
       System.Data.DataException
         System.Data.SqlServerCe.SqlCeException
          System.Data.SqlServerCe.SqlCeTransactionInProgressException
スレッド セーフスレッド セーフ
この型の public static (Visual Basic では Shared) メンバはすべて、スレッド セーフです。インスタンス メンバの場合は、スレッド セーフであるとは限りません。
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照
関連項目
SqlCeTransactionInProgressException メンバ
System.Data.SqlServerCe 名前空間

SqlCeTransactionInProgressException コンストラクタ

SqlCeTransactionInProgressException クラスの新しいインスタンスを初期化します。

名前空間: System.Data.SqlServerCe
アセンブリ: System.Data.SqlServerCe (system.data.sqlserverce.dll 内)
構文構文

Dim instance As New SqlCeTransactionInProgressException
public SqlCeTransactionInProgressException ()
public:
SqlCeTransactionInProgressException ()
public SqlCeTransactionInProgressException ()
public function SqlCeTransactionInProgressException
 ()
.NET Framework のセキュリティ.NET Framework のセキュリティ
プラットフォームプラットフォーム
バージョン情報バージョン情報

.NET Compact Framework

サポート対象 : 2.0
参照参照

関連項目

SqlCeTransactionInProgressException クラス
SqlCeTransactionInProgressException メンバ
System.Data.SqlServerCe 名前空間

SqlCeTransactionInProgressException プロパティ


パブリック プロパティパブリック プロパティ

  名前 説明
パブリック プロパティ Errors  .NET Compact Framework Data Provider for SQL Server Mobile が生成する例外の詳細情報を格納する、1 つ以上の SqlCeError オブジェクトのコレクションを取得します。 ( SqlCeException から継承されます。)
パブリック プロパティ HResult  例外の HRESULT 値を取得します。値は、例外の SqlCeErrorCollection 内にある SqlCeError の最初のインスタンスの HResult 値と同じです。 ( SqlCeException から継承されます。)
パブリック プロパティ InnerException  現在の例外を発生させた Exception インスタンスを取得します。 ( Exception から継承されます。)
パブリック プロパティ Message  この例外の SqlCeErrorCollection 内にある SqlCeError の最初のインスタンスの説明テキストを取得します。 ( SqlCeException から継承されます。)
パブリック プロパティ NativeError  SqlCeErrorCollection 内の最初の SqlCeError のネイティブ エラー番号を取得します。エラーの詳細については、SQL Server Mobile Books Online の「Troubleshooting」セクションの「SQL Server Mobile エラー」のトピックを参照してください。 ( SqlCeException から継承されます。)
パブリック プロパティ Source  エラーを生成した OLE DB プロバイダの名前を取得します。 ( SqlCeException から継承されます。)
パブリック プロパティ StackTrace  現在の例外がスローされたときにコール スタックにあったフレームの文字列形式を取得します。 ( Exception から継承されます。)
参照参照

関連項目

SqlCeTransactionInProgressException クラス
System.Data.SqlServerCe 名前空間

SqlCeTransactionInProgressException メソッド


パブリック メソッドパブリック メソッド

プロテクト メソッドプロテクト メソッド
参照参照

関連項目

SqlCeTransactionInProgressException クラス
System.Data.SqlServerCe 名前空間

SqlCeTransactionInProgressException メンバ

別のトランザクションの進行中に、データベースを変更しようとすると、発生します。

SqlCeTransactionInProgressException データ型で公開されるメンバを以下の表に示します。


パブリック コンストラクタパブリック コンストラクタ
  名前 説明
パブリック メソッド SqlCeTransactionInProgressException  
パブリック プロパティパブリック プロパティ
  名前 説明
パブリック プロパティ Errors  .NET Compact Framework Data Provider for SQL Server Mobile が生成する例外の詳細情報を格納する、1 つ以上の SqlCeError オブジェクトのコレクションを取得します。(SqlCeException から継承されます。)
パブリック プロパティ HResult  例外の HRESULT 値を取得します。値は、例外の SqlCeErrorCollection 内にある SqlCeError の最初のインスタンスの HResult 値と同じです。(SqlCeException から継承されます。)
パブリック プロパティ InnerException  現在の例外を発生させた Exception インスタンスを取得します。(Exception から継承されます。)
パブリック プロパティ Message  この例外の SqlCeErrorCollection 内にある SqlCeError の最初のインスタンスの説明テキストを取得します。(SqlCeException から継承されます。)
パブリック プロパティ NativeError  SqlCeErrorCollection 内の最初の SqlCeError のネイティブ エラー番号を取得します。エラーの詳細については、SQL Server Mobile Books Online の「Troubleshooting」セクションの「SQL Server Mobile エラー」のトピックを参照してください。(SqlCeException から継承されます。)
パブリック プロパティ Source  エラーを生成した OLE DB プロバイダの名前を取得します。(SqlCeException から継承されます。)
パブリック プロパティ StackTrace  現在の例外がスローされたときにコール スタックにあったフレームの文字列形式を取得します。(Exception から継承されます。)
パブリック メソッドパブリック メソッド
プロテクト メソッドプロテクト メソッド
参照参照

関連項目

SqlCeTransactionInProgressException クラス
System.Data.SqlServerCe 名前空間



英和和英テキスト翻訳

英語⇒日本語日本語⇒英語

辞書ショートカット

すべての辞書の索引

「SqlCeTransactionInProgressException」の関連用語

SqlCeTransactionInProgressExceptionのお隣キーワード
検索ランキング

   

英語⇒日本語
日本語⇒英語
   



SqlCeTransactionInProgressExceptionのページの著作権

   
日本マイクロソフト株式会社日本マイクロソフト株式会社
© 2026 Microsoft.All rights reserved.

©2026 GRAS Group, Inc.RSS