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 类

 

RuntimeType 属性

指定 UltraLite.NET 运行时类型。使用任何其它 UltraLite.NET API 之前,必须选择运行时类型。

语法
Visual Basic
Public Shared Property RuntimeType As ULRuntimeType
C#
public static ULRuntimeType RuntimeType { get; set; }
属性值

ULRuntimeType 值,表示非托管 UltraLite .NET 运行时的类型。

示例

以下示例将选择 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
另请参见