CodeCharge Studio All C#.NET VB.NET

Connection Run-Time Property (.NET)

Applies to

ConnectionString Object

Syntax

C#.NET

public string ConnectionString{get;set;}

VB.NET

Public Property ConnectionString() As String

Description

A connection string that includes the source database name and other parameters needed to establish the initial connection. The default value is an empty string. The format of the string depends on the Type property.

Examples

C#.NET

ConnectionString1.ConnectionString = @"Provider=Microsoft.Jet.OLEDB.4.0;User ID=Admin;Data Source=c:\Program Files\CodeChargeStudio5\Examples\Internet\Internet.mdb ;Persist Security Info=False";

VB.NET

ConnectionString1.ConnectionString = "Provider=Microsoft.Jet.OLEDB.4.0;User ID=Admin;Data Source=c:\Program Files\CodeChargeStudio5\Examples\Internet\Internet.mdb ;Persist Security Info=False"

See also

Type Property


On-line, printable versions and updates