SqlConnectionStringBuilder.Enlist Property


获取或设置一个布尔值,该值指示 SQL Server 连接池程序是否在创建线程的当前事务上下文中自动登记连接。Gets or sets a Boolean value that indicates whether the SQL Server connection pooler automatically enlists the connection in the creation thread's current transaction context.

 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

Property Value


Enlist 属性的值,或者,如果未提供任何值,则为 trueThe value of the Enlist property, or true if none has been supplied.


此属性与连接字符串内的“Enlist”键相对应。This property corresponds to the "Enlist" key within the connection string.

Applies to

See also