DbConnectionStringBuilder.BrowsableConnectionString 屬性

定義

取得或設定值,指出 ConnectionString 屬性是否會顯示在 Visual Studio 設計工具中。

public:
 property bool BrowsableConnectionString { bool get(); void set(bool value); };
[System.ComponentModel.Browsable(false)]
public bool BrowsableConnectionString { get; set; }
[<System.ComponentModel.Browsable(false)>]
member this.BrowsableConnectionString : bool with get, set
Public Property BrowsableConnectionString As Boolean

屬性值

如果連接字串顯示在設計工具中,則為 true;否則為 false。 預設為 true

屬性

備註

建立利用 類別之設計工具的DbConnectionStringBuilder開發人員必須能夠在設計工具的屬性方格內顯示或看不到 連接字串。 屬性 BrowsableConnectionString 可讓開發人員透過將 屬性設定為 false來指出屬性應該不可見。

適用於

另請參閱