DbCommand.Transaction DbCommand.Transaction DbCommand.Transaction DbCommand.Transaction Property

定义

获取或设置将在其中执行此 DbCommand 对象的 DbTransactionGets or sets the DbTransaction within which this DbCommand object executes.

public:
 property System::Data::Common::DbTransaction ^ Transaction { System::Data::Common::DbTransaction ^ get(); void set(System::Data::Common::DbTransaction ^ value); };
[System.ComponentModel.Browsable(false)]
public System.Data.Common.DbTransaction Transaction { get; set; }
member this.Transaction : System.Data.Common.DbTransaction with get, set
Public Property Transaction As DbTransaction

属性值

在其中执行 .NET Framework 数据提供程序的 Command 对象的事务。The transaction within which a Command object of a .NET Framework data provider executes. 默认值为空引用(在 Visual Basic 中为 Nothing)。The default value is a null reference (Nothing in Visual Basic).

适用于

另请参阅