OleDbCommand.Transaction 属性

定义

获取或设置要在其中执行 OleDbTransactionOleDbCommand

public:
 property System::Data::OleDb::OleDbTransaction ^ Transaction { System::Data::OleDb::OleDbTransaction ^ get(); void set(System::Data::OleDb::OleDbTransaction ^ value); };
[System.ComponentModel.Browsable(false)]
public System.Data.OleDb.OleDbTransaction? Transaction { get; set; }
[System.ComponentModel.Browsable(false)]
[System.Data.DataSysDescription("DbCommand_Transaction")]
public System.Data.OleDb.OleDbTransaction Transaction { get; set; }
[System.ComponentModel.Browsable(false)]
public System.Data.OleDb.OleDbTransaction Transaction { get; set; }
[<System.ComponentModel.Browsable(false)>]
member this.Transaction : System.Data.OleDb.OleDbTransaction with get, set
[<System.ComponentModel.Browsable(false)>]
[<System.Data.DataSysDescription("DbCommand_Transaction")>]
member this.Transaction : System.Data.OleDb.OleDbTransaction with get, set
Public Property Transaction As OleDbTransaction

属性值

OleDbTransaction 默认值是 null

属性

注解

如果属性已设置为特定值,并且命令正在执行中,则无法 Transaction 设置该属性。 如果将事务属性设置为OleDbTransaction未连接到与 对象相同的OleDbConnectionOleDbCommand对象,则下次尝试执行语句时将引发异常。

适用于

另请参阅