DbConnectionStringBuilder.BrowsableConnectionString 属性

定义

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

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

属性值

Boolean

如果连接字符串在设计器中可见,则为 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. BrowsableConnectionString属性允许开发人员通过将属性设置为来指示属性是否可见 falseThe BrowsableConnectionString property lets developers indicate that the property should be invisible by setting the property to false.

适用于

另请参阅