CodeCharge Studio All C#.NET VB.NET

Type Run-Time Property (.NET)

Applies to

ConnectionString Object

Syntax

C#.NET

public ConnectionStringType Type{get;set;}

VB.NET

Public Property Type() As ConnectionStringType

Description

The type of .NET Managed Provider, which will be used for the connection. The following table lists the different types.
Type Description
OleDb  OLE DB .NET Data Provider.
Sql  SQL Server .NET Data Provider.
Odbc  ODBC .NET Data Provider. 
Oracle  Oracle .NET Data Provider. 

Examples

C#.NET

ConnectionString1.Type = ConnectionStringType.OleDb;

VB.NET

ConnectionString1.Type = ConnectionStringType._OleDb

See also

ConnectionString Property


On-line, printable versions and updates