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" 索引鍵。

適用於

另請參閱