SqlConnectionStringBuilder.Enlist 属性

定义

获取或设置一个布尔值,该值指示 SQL Server 连接池程序是否自动在创建线程的当前事务上下文中登记连接。

public:
 property bool Enlist { bool get(); void set(bool value); };
public bool Enlist { get; set; }
member this.Enlist : bool with get, set
Public Property Enlist As Boolean

属性值

属性的值 Enlist ,或者 true 未提供任何值。

注解

此属性对应于连接字符串中的“Enlist”键。

适用于

另请参阅