SqlCeVersionManager Class

Identifies the SQL Server Compact version of which the database file is built against.

Inheritance Hierarchy

System.Object
  Microsoft.SqlServerCe.VersionManagement.SqlCeVersionManager

Namespace:  Microsoft.SqlServerCe.VersionManagement
Assembly:  Microsoft.SqlServerCe.VersionManagement (in Microsoft.SqlServerCe.VersionManagement.dll)

Syntax

'Declaration
Public NotInheritable Class SqlCeVersionManager
'Usage
public static class SqlCeVersionManager
public ref class SqlCeVersionManager abstract sealed
[<AbstractClassAttribute>]
[<SealedAttribute>]
type SqlCeVersionManager =  class end
public final class SqlCeVersionManager

The SqlCeVersionManager type exposes the following members.

Properties

  Name Description
Public propertyStatic member AllDesignTimesAvailable Gets all design-time information that has been centrally installed on the user machine.
Public propertyStatic member AllRuntimesAvailable Gets all SQL Server Compact runtime engine information that have been centrally installed in the given user machine.
Public propertyStatic member LatestDesignTimeAvailable Gets the latest design-time information available on the machine.
Public propertyStatic member LatestRuntimeAvailable Gets the latest SQL Server Compact runtime available in the machine.

Top

Methods

  Name Description
Public methodStatic member CreateDatabase Creates a new SQL Server Compact database as identified by the connection string with the SQL Server Compact runtime as specified by the database version argument.
Public methodStatic member GetDesignTimeProviderFactoryName(String) Retrieves the design time provider factory name to be used for the given database file.
Public methodStatic member GetDesignTimeProviderFactoryName(SqlCeVersion) Retrieves the SQL Server Compact design time provider factory name for the specified version of the SQL Server Compact runtime.
Public methodStatic member GetProviderFactory(String) Retrieves the provider factory to be used for the given database file.
Public methodStatic member GetProviderFactory(SqlCeVersion) Retrieves the SQL Server Compact provider factory for the specified version of the SQL Server Compact runtime.
Public methodStatic member GetRuntimeInformation(String) Retrieves the information of the runtime for the given database file.
Public methodStatic member GetRuntimeInformation(SqlCeVersion) Retrieves the SQL Server Compact runtime information for the specified version of the SQL Server Compact.
Public methodStatic member GetRuntimeProviderFactoryName(String) Retrieves the runtime provider factory name to be used for the given database file.
Public methodStatic member GetRuntimeProviderFactoryName(SqlCeVersion) Retrieves the SQL Server Compact runtime provider factory name for the specified version of the SQL Server Compact runtime.
Public methodStatic member GetVersion Retrieves the version of the SQL Server Compact database given the file path.
Public methodStatic member IsRuntimeAvailable Indicates whether the SQL Server Compact runtime of the specified version is available.
Public methodStatic member UpgradeDatabase Upgrades the SQL Server Compact database as identified by the connection string with the SQL Server Compact runtime as specified by the database version argument.

Top

Thread Safety

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.

See Also

Reference

Microsoft.SqlServerCe.VersionManagement Namespace