.NET Framework Class Library
SqlConnectionStringBuilder Members

Provides a simple way to create and manage the contents of connection strings used by the SqlConnection class.

The SqlConnectionStringBuilder type exposes the following members.

Constructors

  NameDescription
Public methodSqlConnectionStringBuilderOverloaded. Initializes a new instance of the SqlConnectionStringBuilder class.
Top
Methods

  NameDescription
Public methodAddAdds an entry with the specified key and value into the DbConnectionStringBuilder. (Inherited from DbConnectionStringBuilder.)
Public methodClearClears the contents of the SqlConnectionStringBuilder instance. (Overrides DbConnectionStringBuilder..::.Clear()()().)
Protected methodClearPropertyDescriptorsClears the collection of PropertyDescriptor objects on the associated DbConnectionStringBuilder. (Inherited from DbConnectionStringBuilder.)
Public methodContainsKeyDetermines whether the SqlConnectionStringBuilder contains a specific key. (Overrides DbConnectionStringBuilder..::.ContainsKey(String).)
Public methodEqualsDetermines whether the specified Object is equal to the current Object. (Inherited from Object.)
Public methodEquivalentToCompares the connection information in this DbConnectionStringBuilder object with the connection information in the supplied object. (Inherited from DbConnectionStringBuilder.)
Protected methodFinalizeAllows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection. (Inherited from Object.)
Public methodGetHashCodeServes as a hash function for a particular type. (Inherited from Object.)
Protected methodGetPropertiesFills a supplied Hashtable with information about all the properties of this DbConnectionStringBuilder. (Inherited from DbConnectionStringBuilder.)
Public methodGetTypeGets the Type of the current instance. (Inherited from Object.)
Protected methodMemberwiseCloneCreates a shallow copy of the current Object. (Inherited from Object.)
Public methodRemoveRemoves the entry with the specified key from the SqlConnectionStringBuilder instance. (Overrides DbConnectionStringBuilder..::.Remove(String).)
Public methodShouldSerializeIndicates whether the specified key exists in this SqlConnectionStringBuilder instance. (Overrides DbConnectionStringBuilder..::.ShouldSerialize(String).)
Public methodToStringReturns the connection string associated with this DbConnectionStringBuilder. (Inherited from DbConnectionStringBuilder.)
Public methodTryGetValueRetrieves a value corresponding to the supplied key from this SqlConnectionStringBuilder. (Overrides DbConnectionStringBuilder..::.TryGetValue(String, Object%).)
Top
Properties

  NameDescription
Public propertyApplicationNameGets or sets the name of the application associated with the connection string.
Public propertyAsynchronousProcessingGets or sets a Boolean value that indicates whether asynchronous processing is allowed by the connection created by using this connection string.
Public propertyAttachDBFilenameGets or sets a string that contains the name of the primary data file. This includes the full path name of an attachable database.
Public propertyBrowsableConnectionStringGets or sets a value that indicates whether the ConnectionString property is visible in Visual Studio designers. (Inherited from DbConnectionStringBuilder.)
Public propertyConnectionResetObsolete. Gets or sets a Boolean value that indicates whether the connection is reset when drawn from the connection pool.
Public propertyConnectionStringGets or sets the connection string associated with the DbConnectionStringBuilder. (Inherited from DbConnectionStringBuilder.)
Public propertyConnectTimeoutGets or sets the length of time (in seconds) to wait for a connection to the server before terminating the attempt and generating an error.
Public propertyContextConnectionGets or sets a value that indicates whether a client/server or in-process connection to SQL Server should be made.
Public propertyCountGets the current number of keys that are contained within the ConnectionString property. (Inherited from DbConnectionStringBuilder.)
Public propertyCurrentLanguageGets or sets the SQL Server Language record name.
Public propertyDataSourceGets or sets the name or network address of the instance of SQL Server to connect to.
Public propertyEncryptGets or sets a Boolean value that indicates whether SQL Server uses SSL encryption for all data sent between the client and server if the server has a certificate installed.
Public propertyEnlistGets or sets a Boolean value that indicates whether the SQL Server connection pooler automatically enlists the connection in the creation thread's current transaction context.
Public propertyFailoverPartnerGets or sets the name or address of the partner server to connect to if the primary server is down.
Public propertyInitialCatalogGets or sets the name of the database associated with the connection.
Public propertyIntegratedSecurityGets or sets a Boolean value that indicates whether User ID and Password are specified in the connection (when false) or whether the current Windows account credentials are used for authentication (when true).
Public propertyIsFixedSizeGets a value that indicates whether the SqlConnectionStringBuilder has a fixed size. (Overrides DbConnectionStringBuilder..::.IsFixedSize.)
Public propertyIsReadOnlyGets a value that indicates whether the DbConnectionStringBuilder is read-only. (Inherited from DbConnectionStringBuilder.)
Public propertyItemGets or sets the value associated with the specified key. In C#, this property is the indexer. (Overrides DbConnectionStringBuilder..::.Item[([(String])]).)
Public propertyKeysGets an ICollection that contains the keys in the SqlConnectionStringBuilder. (Overrides DbConnectionStringBuilder..::.Keys.)
Public propertyLoadBalanceTimeoutGets or sets the minimum time, in seconds, for the connection to live in the connection pool before being destroyed.
Public propertyMaxPoolSizeGets or sets the maximum number of connections allowed in the connection pool for this specific connection string.
Public propertyMinPoolSizeGets or sets the minimum number of connections allowed in the connection pool for this specific connection string.
Public propertyMultipleActiveResultSetsGets or sets a Boolean value that indicates whether multiple active result sets can be associated with the associated connection.
Public propertyNetworkLibraryGets or sets a string that contains the name of the network library used to establish a connection to the SQL Server.
Public propertyPacketSizeGets or sets the size in bytes of the network packets used to communicate with an instance of SQL Server.
Public propertyPasswordGets or sets the password for the SQL Server account.
Public propertyPersistSecurityInfoGets or sets a Boolean value that indicates if security-sensitive information, such as the password, is not returned as part of the connection if the connection is open or has ever been in an open state.
Public propertyPoolingGets or sets a Boolean value that indicates whether the connection will be pooled or explicitly opened every time that the connection is requested.
Public propertyReplicationGets or sets a Boolean value that indicates whether replication is supported using the connection.
Public propertyTransactionBindingGets or sets a string value that indicates how the connection maintains its association with an enlisted System.Transactions transaction.
Public propertyTrustServerCertificateGets or sets a value that indicates whether the channel will be encrypted while bypassing walking the certificate chain to validate trust.
Public propertyTypeSystemVersionGets or sets a string value that indicates the type system the application expects.
Public propertyUserIDGets or sets the user ID to be used when connecting to SQL Server.
Public propertyUserInstanceGets or sets a value that indicates whether to redirect the connection from the default SQL Server Express instance to a runtime-initiated instance running under the account of the caller.
Public propertyValuesGets an ICollection that contains the values in the SqlConnectionStringBuilder. (Overrides DbConnectionStringBuilder..::.Values.)
Public propertyWorkstationIDGets or sets the name of the workstation connecting to SQL Server.
Top
Explicit Interface Implementations

  NameDescription
Explicit interface implemetationPrivate methodIDictionary..::.Add (Inherited from DbConnectionStringBuilder.)
Explicit interface implemetationPrivate methodIDictionary..::.Contains (Inherited from DbConnectionStringBuilder.)
Explicit interface implemetationPrivate methodICollection..::.CopyTo (Inherited from DbConnectionStringBuilder.)
Explicit interface implemetationPrivate methodICustomTypeDescriptor..::.GetAttributes (Inherited from DbConnectionStringBuilder.)
Explicit interface implemetationPrivate methodICustomTypeDescriptor..::.GetClassName (Inherited from DbConnectionStringBuilder.)
Explicit interface implemetationPrivate methodICustomTypeDescriptor..::.GetComponentName (Inherited from DbConnectionStringBuilder.)
Explicit interface implemetationPrivate methodICustomTypeDescriptor..::.GetConverter (Inherited from DbConnectionStringBuilder.)
Explicit interface implemetationPrivate methodICustomTypeDescriptor..::.GetDefaultEvent (Inherited from DbConnectionStringBuilder.)
Explicit interface implemetationPrivate methodICustomTypeDescriptor..::.GetDefaultProperty (Inherited from DbConnectionStringBuilder.)
Explicit interface implemetationPrivate methodICustomTypeDescriptor..::.GetEditor (Inherited from DbConnectionStringBuilder.)
Explicit interface implemetationPrivate methodIDictionary..::.GetEnumerator (Inherited from DbConnectionStringBuilder.)
Explicit interface implemetationPrivate methodIEnumerable..::.GetEnumerator (Inherited from DbConnectionStringBuilder.)
Public methodGetEventsOverloaded. For a description of this member, see ICustomTypeDescriptor..::.GetEvents.
Public methodGetPropertiesOverloaded. For a description of this member, see ICustomTypeDescriptor..::.GetProperties.
Explicit interface implemetationPrivate methodICustomTypeDescriptor..::.GetPropertyOwner (Inherited from DbConnectionStringBuilder.)
Explicit interface implemetationPrivate propertyICollection..::.IsSynchronized (Inherited from DbConnectionStringBuilder.)
Explicit interface implemetationPrivate propertyIDictionary..::.Item (Inherited from DbConnectionStringBuilder.)
Explicit interface implemetationPrivate methodIDictionary..::.Remove (Inherited from DbConnectionStringBuilder.)
Explicit interface implemetationPrivate propertyICollection..::.SyncRoot (Inherited from DbConnectionStringBuilder.)
Top
See Also

Reference

Tags :


Page view tracker