SqlCeVersionManager.GetProviderFactory Method (SqlCeVersion)

Visual Studio 2010

Retrieves the SQL Server Compact provider factory for the specified version of the SQL Server Compact runtime.

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

public static DbProviderFactory GetProviderFactory(
	SqlCeVersion version
)

Parameters

version
Type: Microsoft.SqlServerCe.VersionManagement.SqlCeVersion
The SQL Server Compact runtime version.

Return Value

Type: System.Data.Common.DbProviderFactory
The SQL Server Compact provider factory for the specified version of the SQL Server Compact runtime; otherwise null.
Show: