Click here to view and discuss this page in DocCommentXchange. In the future, you will be sent there automatically.

SQL Anywhere 11.0.1 (日本語) » SQL Anywhere サーバ - プログラミング » SQL Anywhere データ・アクセス API » SQL Anywhere .NET 2.0 API リファレンス » iAnywhere.Data.SQLAnywhere ネームスペース (.NET 2.0) » SAConnection クラス » BeginTransaction メソッド

 

BeginTransaction(IsolationLevel) メソッド

トランザクション・オブジェクトを返します。トランザクション・オブジェクトに関連付けられているコマンドは、単一のトランザクションとして実行されます。トランザクションは、Commit メソッドまたは Rollback メソッドへの呼び出しで終了します。

構文
Visual Basic

Public Function BeginTransaction( _
   ByVal isolationLevel As IsolationLevel _
) As SATransaction
C#

public SATransaction BeginTransaction(
   IsolationLevel isolationLevel
);
パラメータ
  • isolationLevel   SAIsolationLevel 列挙のメンバ。デフォルト値は ReadCommitted です。

戻り値

新しいトランザクションを表す SATransaction オブジェクト。

備考

コマンドをトランザクション・オブジェクトに関連付けるには、SACommand.Transaction プロパティを使用します。

SATransaction tx = conn.BeginTransaction(
    SAIsolationLevel.ReadUncommitted );
参照