OleDbCommand.Transaction Proprietà

Definizione

Ottiene o imposta l'oggetto OleDbTransaction in cui viene eseguito OleDbCommand.

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)]
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)>]
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

Valore della proprietà

Oggetto OleDbTransaction. Il valore predefinito è null.

Attributi

Commenti

Non è possibile impostare la Transaction proprietà se è già impostata su un valore specifico e il comando è in fase di esecuzione. Se si imposta la proprietà della transazione su un OleDbTransaction oggetto non connesso allo stesso OleDbConnection oggetto dell'oggetto OleDbCommand , viene generata un'eccezione la volta successiva che si tenta di eseguire un'istruzione.

Si applica a

Vedi anche