DbConnectionStringBuilder.BrowsableConnectionString Property


获取或设置一个值,该值指示 ConnectionString 属性是否在 Visual Studio 设计器中可见。Gets or sets a value that indicates whether the ConnectionString property is visible in Visual Studio designers.

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

Property Value


如果连接字符串在设计器中可见,则为 true;否则为 falsetrue if the connection string is visible within designers; false otherwise. 默认为 trueThe default is true.



创建利用 DbConnectionStringBuilder 类的设计器的开发人员必须能够使连接字符串在设计器的属性网格中可见或不可见。Developers creating designers that take advantage of the DbConnectionStringBuilder class must be able to make the connection string visible or invisible within the designer's property grid. 通过将属性设置为 false,开发人员可通过 BrowsableConnectionString 属性来指示属性是否可见。The BrowsableConnectionString property lets developers indicate that the property should be invisible by setting the property to false.

Applies to

See also