Click here to view and discuss this page in DocCommentXchange. In the future, you will be sent there automatically.
指定 SACommand 执行时所处的 SATransaction 对象。
Public Shadows Property Transaction As SATransaction
public new SATransaction Transaction {get;set;}
缺省值为空值引用。在 Visual Basic 中为 Nothing。
如果 Transaction 属性已设置为特定值且正在执行命令,则无法设置该属性。如果将 transaction 属性设置为某个 SATransaction 对象,而该 SATransaction 对象并未连接到 SACommand 对象所连接到的 SAConnection 对象,则您下次尝试执行语句时将会抛出异常。
有关详细信息,请参见事务处理。