Export (0) Print
Expand All

SqlCeConnectionStringBuilder Class

Visual Studio 2010

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

System.Object
  System.Data.Common.DbConnectionStringBuilder
    System.Data.SqlServerCe.SqlCeConnectionStringBuilder

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

public sealed class SqlCeConnectionStringBuilder : DbConnectionStringBuilder

The SqlCeConnectionStringBuilder type exposes the following members.

  NameDescription
Public methodSqlCeConnectionStringBuilder()Initializes a new instance of the SqlCeConnectionStringBuilder class using default values.
Public methodSqlCeConnectionStringBuilder(String)Initializes a new instance of the SqlCeConnectionStringBuilder class using the specified connection string that provides the data for the instance’s internal connection information.
Top

  NameDescription
Public propertyAutoshrinkThresholdGets or sets the percent of free space in the database file that is allowed before autoshrink begins.
Public propertyBrowsableConnectionString (inherited from DbConnectionStringBuilder)
Public propertyCaseSensitiveGets or sets a value that indicates whether or not the database collation is case-sensitive.
Public propertyConnectionString (inherited from DbConnectionStringBuilder)
Public propertyCount (inherited from DbConnectionStringBuilder)
Public propertyDataSourceGets or sets the file path and name of the SQL Server Compact database.
Public propertyDefaultLockEscalationGets or sets the number of locks a transaction will acquire before attempting escalation from row to page, or from page to table.
Public propertyDefaultLockTimeoutGets or sets the default number of milliseconds that a transaction will wait for a lock.
Public propertyEncryptGets or sets a value that indicates whether or not the database is encrypted.
Public propertyEncryptionModeGets or sets the encryption mode with which the database is to be created against.
Public propertyEnlistGets or sets a value that indicates whether a connection database is opened by using Enlist.
Public propertyFileModeGets or sets the mode to use when opening the database file.
Public propertyFlushIntervalGets or sets the specified interval time (in seconds) before all committed transactions are flushed to disk.
Public propertyInitialLcidGets or sets the locale ID (LCID) to use with the database.
Public propertyIsFixedSizeGets a value that indicates whether the SqlCeConnectionStringBuilder has a fixed size. (Overrides DbConnectionStringBuilder.IsFixedSize.)
Public propertyIsReadOnly (inherited from DbConnectionStringBuilder)
Public propertyItemGets or sets the value associated with the specified key. (Overrides DbConnectionStringBuilder.Item[String].)
Public propertyKeysGets an ICollection that contains the keys in the SqlCeConnectionStringBuilder. (Overrides DbConnectionStringBuilder.Keys.)
Public propertyMaxBufferSizeGets or sets the largest amount of memory, in kilobytes that SQL Server Mobile can use before it starts flushing changes to disk.
Public propertyMaxDatabaseSizeGets or sets the maximum size of the database, in Megabytes.
Public propertyPasswordGets or sets the database password, which can be up to 40 characters in length.
Public propertyPersistSecurityInfoGets or sets a value that indicates whether the security-sensitive information, such as the password is not returned as part of the connection.
Public propertyTempFileMaxSizeGets or sets the maximum size of the temporary database file, in Megabytes.
Public propertyTempFilePathGets or sets the location of the temporary database.
Public propertyValuesGets an ICollection that contains the values in the SqlCeConnectionStringBuilder. (Overrides DbConnectionStringBuilder.Values.)
Top

  NameDescription
Public methodAdd (inherited from DbConnectionStringBuilder)
Public methodClearClears the contents of the SqlCeConnectionStringBuilder instance. (Overrides DbConnectionStringBuilder.Clear().)
Protected methodClearPropertyDescriptors (inherited from DbConnectionStringBuilder)
Public methodContainsKeyDetermines whether the SqlCeConnectionStringBuilder contains a specific key. (Overrides DbConnectionStringBuilder.ContainsKey(String).)
Public methodEquals (inherited from Object)
Public methodEquivalentTo (inherited from DbConnectionStringBuilder)
Protected methodFinalize (inherited from Object)
Public methodGetHashCode (inherited from Object)
Protected methodGetProperties (inherited from DbConnectionStringBuilder)
Public methodGetType (inherited from Object)
Protected methodMemberwiseClone (inherited from Object)
Public methodRemoveRemoves the entry with the specified key from the SqlCeConnectionStringBuilder instance. (Overrides DbConnectionStringBuilder.Remove(String).)
Public methodShouldSerializeIndicates whether the specified key exists in this SqlCeConnectionStringBuilder instance. (Overrides DbConnectionStringBuilder.ShouldSerialize(String).)
Public methodToString (inherited from DbConnectionStringBuilder)
Public methodTryGetValueRetrieves a value corresponding to the supplied key from this SqlCeconnectionStringBuilder. (Overrides DbConnectionStringBuilder.TryGetValue(String, Object).)
Top

  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 methodIEnumerable.GetEnumerator (inherited from DbConnectionStringBuilder)
Explicit interface implemetationPrivate methodIDictionary.GetEnumerator (inherited from DbConnectionStringBuilder)
Explicit interface implemetationPrivate methodICustomTypeDescriptor.GetEvents() (inherited from DbConnectionStringBuilder)
Explicit interface implemetationPrivate methodICustomTypeDescriptor.GetEvents(Attribute[]) (inherited from DbConnectionStringBuilder)
Explicit interface implemetationPrivate methodICustomTypeDescriptor.GetProperties() (inherited from DbConnectionStringBuilder)
Explicit interface implemetationPrivate methodICustomTypeDescriptor.GetProperties(Attribute[]) (inherited from DbConnectionStringBuilder)
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

Any public static (Shared in Microsoft Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft