Gets or sets the current connectionstring.
Namespace: ZsZ_Studio.ControlsAssembly: SQL.Connection.Control (in SQL.Connection.Control.dll) Version: 1.0.4947.20663 (1.0.0.0)
public string ConnectionString { get; set; }
public string ConnectionString { get; set; }
Public Property ConnectionString As String
Get
Set
Public Property ConnectionString As String
Get
Set
public:
property String^ ConnectionString {
String^ get ();
void set (String^ value);
}
public:
property String^ ConnectionString {
String^ get ();
void set (String^ value);
}
Property Value
Type:
StringThe control try parse the connectionstring. On error raises
ErrorOccurred event with property
ErrorType.ConnectionStringParseError and the
Exception object.
(VB.NET) This sample shows how to set the connectionstring.
Dim scc As New ZsZ_Studio.Controls.SQLConnectionControl
scc.Location = New Point(10, 10)
scc.ConnectionString = "Data Source=localhost\SQLEXPRESS;Initial Catalog=NewDatabase;Integrated Security=False;User ID=sa;Password=pass"
Me.Controls.Add(scc)
Dim scc As New ZsZ_Studio.Controls.SQLConnectionControl
scc.Location = New Point(10, 10)
scc.ConnectionString = "Data Source=localhost\SQLEXPRESS;Initial Catalog=NewDatabase;Integrated Security=False;User ID=sa;Password=pass"
Me.Controls.Add(scc)