ConnectionStringBuilder Class

System.Data.Generic

ConnectionStringBuilder Class
Builds a connection to a SQL server.
Inheritance Hierarchy
SystemObject  System.Data.GenericConnectionStringBuilder

Namespace: System.Data.Generic
Assembly: System.Data.Generic (in System.Data.Generic.dll) Version: 1.9.5473.30542 (1.9.5473.2392)
Syntax
public sealed class ConnectionStringBuilder
Public NotInheritable Class ConnectionStringBuilder
public ref class ConnectionStringBuilder sealed
[<SealedAttribute>]
type ConnectionStringBuilder =  class end

The ConnectionStringBuilder type exposes the following members.

Constructors
  NameDescription
Public methodConnectionStringBuilder(String, String)
Returns a new instance of the ConnectionStringBuilder class.
Public methodConnectionStringBuilder(String, String, NetworkCredential)
Returns a new instance of the ConnectionStringBuilder class, specifying credentials.
Top
Methods
  NameDescription
Public methodEquals
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Public methodGetHashCode
Serves as a hash function for a particular type.
(Inherited from Object.)
Public methodStatic memberGetSqlExpress
Returns a connectionstring for a SQL Express.
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodToString
Returns the connection string.
(Overrides ObjectToString.)
Top
Properties
  NameDescription
Public propertyCredentials
Gets or sets the username and password of the connection.
Public propertyDatabase
Gets or sets the value of the database.
Public propertyIntegratedSecurity
Gets or sets if the connection use integrated security capabilities.
Public propertyMultipleActiveResultSets
Gets or sets if the connection enables multiple active resultsets.
Public propertyServer
Gets the value of the server.
Public propertyTrustedConnection
Gets or sets if the connection use trusted connection capabilities.
Top
Remarks