SqlCeClientSyncProvider 构造函数 (String, Boolean)
用连接字符串和数据库创建参数初始化 SqlCeClientSyncProvider 类的一个新实例。
命名空间: Microsoft.Synchronization.Data.SqlServerCe
程序集: Microsoft.Synchronization.Data.SqlServerCe(在 Microsoft.Synchronization.Data.SqlServerCe.dll 中)
语法
声明
Public Sub New ( _
connectionString As String, _
createDbIfNotExists As Boolean _
)
用法
Dim connectionString As String
Dim createDbIfNotExists As Boolean
Dim instance As New SqlCeClientSyncProvider(connectionString, _
createDbIfNotExists)
public SqlCeClientSyncProvider(
string connectionString,
bool createDbIfNotExists
)
public:
SqlCeClientSyncProvider(
String^ connectionString,
bool createDbIfNotExists
)
new :
connectionString:string *
createDbIfNotExists:bool -> SqlCeClientSyncProvider
public function SqlCeClientSyncProvider(
connectionString : String,
createDbIfNotExists : boolean
)
参数
- connectionString
类型:System. . :: . .String
用于连接到 SQL Server Compact 数据库的字符串。
- createDbIfNotExists
类型:System. . :: . .Boolean
如果为 True,则创建客户端数据库(如果该数据库不存在);如果为 false,则不创建该数据库。默认值为 true。