CreateConnectionStringBuilder Method

SqlClientFactory.CreateConnectionStringBuilder Method ()

 

Returns a strongly typed DbConnectionStringBuilder instance.

Namespace:   System.Data.SqlClient
Assembly:  System.Data (in System.Data.dll)

public override DbConnectionStringBuilder CreateConnectionStringBuilder()

Return Value

Type: System.Data.Common.DbConnectionStringBuilder

A new strongly typed instance of DbConnectionStringBuilder.

The following code fragment returns a strongly typed DbConnectionStringBuilder instance:

SqlClientFactory newFactory = SqlClientFactory.Instance;
DbConnectionStringBuilder cmd = 
    newFactory.CreateConnectionStringBuilder();

Universal Windows Platform
Available since 10
.NET Framework
Available since 2.0
Return to top
Show:
© 2016 Microsoft