SqlCeConnectionStringBuilder.AutoshrinkThreshold Property

Visual Studio 2010

Gets or sets the percent of free space in the database file that is allowed before autoshrink begins.

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

public int AutoshrinkThreshold { get; set; }

Property Value

Type: System.Int32
A value of 100 disables autoshrink. If not specified, the default value is 60.