OleDbTransaction.Begin 方法

定義

啟始巢狀資料庫交易。Initiates a nested database transaction.

多載

Begin()

啟始巢狀資料庫交易。Initiates a nested database transaction.

Begin(IsolationLevel)

啟始巢狀資料庫交易,並指定要用於新交易的隔離等級。Initiates a nested database transaction and specifies the isolation level to use for the new transaction.

Begin()

啟始巢狀資料庫交易。Initiates a nested database transaction.

public:
 System::Data::OleDb::OleDbTransaction ^ Begin();
public System.Data.OleDb.OleDbTransaction Begin ();
member this.Begin : unit -> System.Data.OleDb.OleDbTransaction
Public Function Begin () As OleDbTransaction

傳回

巢狀資料庫交易。A nested database transaction.

例外狀況

不支援巢狀交易。Nested transactions are not supported.

備註

新的交易會在目前的交易內進行嵌套。The new transaction is nested within the current transaction.

另請參閱

Begin(IsolationLevel)

啟始巢狀資料庫交易,並指定要用於新交易的隔離等級。Initiates a nested database transaction and specifies the isolation level to use for the new transaction.

public:
 System::Data::OleDb::OleDbTransaction ^ Begin(System::Data::IsolationLevel isolevel);
public System.Data.OleDb.OleDbTransaction Begin (System.Data.IsolationLevel isolevel);
member this.Begin : System.Data.IsolationLevel -> System.Data.OleDb.OleDbTransaction
Public Function Begin (isolevel As IsolationLevel) As OleDbTransaction

參數

isolevel
IsolationLevel

要用於交易的隔離等級。The isolation level to use for the transaction.

傳回

巢狀資料庫交易。A nested database transaction.

例外狀況

不支援巢狀交易。Nested transactions are not supported.

備註

新的交易會在目前的交易內進行嵌套。The new transaction is nested within the current transaction.

另請參閱

適用於