Condividi tramite


OleDbCommand.Transaction Proprietà

Definizione

Ottiene o imposta l'oggetto all'interno del OleDbTransaction quale viene eseguito l'oggetto 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)]
[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

Valore della proprietà

Il OleDbTransaction Il valore predefinito è null.

Attributi

Commenti

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

Si applica a

Vedi anche