包装 COM+ ByotServerEx 类以及 COM+ DTC 接口 ICreateWithTransactionExICreateWithTipTransactionExWraps the COM+ ByotServerEx class and the COM+ DTC interfaces ICreateWithTransactionEx and ICreateWithTipTransactionEx. 此类不能被继承。This class cannot be inherited.

public ref class BYOT sealed
public sealed class BYOT
type BYOT = class
Public NotInheritable Class BYOT


BYOT(自带事务) 允许使用或创建一个组件来继承外部事务。BYOT (Bring Your Own Transaction) allows a component to be created with or to inherit an external transaction. 也就是说, 没有关联事务的组件可以获取事务。That is, a component that does not already have an associated transaction can acquire a transaction. COM + 允许将任意预先存在的分布式事务处理协调器 (DTC) 或事务 Internet 协议 (TIP) 事务设置为新组件上下文的事务属性。COM+ allows setting an arbitrary pre-existing Distributed Transaction Coordinator (DTC) or Transaction Internet Protocol (TIP) transaction as the transaction property of a new component's context. 这样, COM + 组件就可以与生存期由事务处理 (TP) 监视器、对象/任务选择器 (OTS) 或数据库管理系统 (DBMS) 控制的事务相关联。This allows COM+ components to be associated with transactions whose lifetimes are controlled by a transaction processing (TP) monitor, Object/Task Selector (OTS), or database management system (DBMS).

BYOT必须谨慎使用事务。BYOT transactions must be used with caution. 在某些情况下, 它们可能会导致事务跨越多个同步域, 也就是说, 它们允许与另一个事务并行, 从而导致死锁情况。In certain situations, they can result in a transaction spanning multiple synchronization domains - that is, they allow parallelism with another transaction, causing a deadlock condition.

自动事务 (而BYOT非事务) 是业务组件编写人员的首选编程模型。Automatic transactions, rather than BYOT transactions, are the preferred programming model for writers of business components.


CreateWithTipTransaction(String, Type)

使用事务 Internet 协议 (TIP) 创建在手动事务内登记的对象。Creates an object that is enlisted within a manual transaction using the Transaction Internet Protocol (TIP).

CreateWithTransaction(Object, Type)

创建在手动事务内登记的对象。Creates an object that is enlisted within a manual transaction.


确定指定对象是否等于当前对象。Determines whether the specified object is equal to the current object.

(继承自 Object)

用作默认哈希函数。Serves as the default hash function.

(继承自 Object)

获取当前实例的 TypeGets the Type of the current instance.

(继承自 Object)

创建当前 Object 的浅表副本。Creates a shallow copy of the current Object.

(继承自 Object)

返回表示当前对象的字符串。Returns a string that represents the current object.

(继承自 Object)