Click here to view and discuss this page in DocCommentXchange. In the future, you will be sent there automatically.

SQL Anywhere 11.0.1 (中文) » UltraLite - .NET 编程 » UltraLite .NET 2.0 API 参考

 

ULDatabaseManager 类

UL Ext.: 管理同步监听器和 UltraLite.NET 运行时类型。ULDatabaseManager 类也允许您删除 UltraLite.NET 数据库。此类无法继承。

语法
Visual Basic
Public NotInheritable Class ULDatabaseManager
C#
public sealed class ULDatabaseManager
注释

此类为单个类,可通过 static(在 Visual Basic 为 Shared)ULConnection.DatabaseManager 访问它的唯一实例。

要使用 UltraLite.NET 的 UltraLite 引擎运行时,请在使用任何其它 UltraLite.NET API 之前将 ULDatabaseManager.RuntimeType 设置为适当的值。

示例

以下示例将选择 UltraLite 引擎运行时并创建一个连接。

' Visual Basic
ULDatabaseManager.RuntimeType = ULRuntimeType.UL_ENGINE_CLIENT
Dim conn As ULConnection = new ULConnection
' The RuntimeType is now locked

// C#
ULDatabaseManager.RuntimeType = ULRuntimeType.UL_ENGINE_CLIENT;
ULConnection conn = new ULConnection();
// The RuntimeType is now locked
另请参见

ULDatabaseManager 成员
RuntimeType 属性
CreateDatabase 方法
DropDatabase 方法
SetActiveSyncListener 方法
SetGlobalListener 方法
SetServerSyncListener 方法
SignalSyncIsComplete 方法
ValidateDatabase 方法