ContextUtil.SystemTransaction 属性
定义
获取当前事务上下文。Gets the current transaction context.
public:
static property System::Transactions::Transaction ^ SystemTransaction { System::Transactions::Transaction ^ get(); };
public static System.Transactions.Transaction SystemTransaction { get; }
member this.SystemTransaction : System.Transactions.Transaction
Public Shared ReadOnly Property SystemTransaction As Transaction
属性值
表示当前事务上下文的 Transaction。A Transaction that represents the current transaction context.
例外
没有可用的 COM+ 上下文。There is no COM+ context available.
注解
如果访问此属性时不存在任何事务上下文,则将创建并返回一个新的事务上下文。If no transaction context exists when this property is accessed, a new transaction context is created and returned.