DbConnectionStringBuilder.BrowsableConnectionString Property

Definition

获取或设置一个值,该值指示 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); };
[System.ComponentModel.Browsable(false)]
public bool BrowsableConnectionString { get; set; }
member this.BrowsableConnectionString : bool with get, set
Public Property BrowsableConnectionString As Boolean

Property Value

Boolean

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

Attributes

Remarks

创建利用 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