跳转到主要内容
该对象是可用 (已激活) 许可证的集合。可通过Engine对象访问此集合。
  • ABBYY FineReader Engine 集合的索引从 0 开始。
  • 可以使用 C# 中的 foreach 语句 (在 Visual Basic .NET 中为 for each) 来遍历和操作该集合。

属性

名称类型描述
ApplicationEngine, 只读返回 Engine 对象。
Countint, 只读表示集合中元素的数量。
Element许可证, 只读提供对集合中单个元素的访问。

方法

名称描述
Find可通过序列号访问许可证。
Item可访问集合中的单个元素。

输出参数

该对象是 Engine 对象的 GetAvailableLicenses 方法的输出参数。 对象图

示例

FREngine.IEngine engine;
// 我们假设 Engine 对象已加载
// 选择许可证
string projectId = ""; // 设置正确的 projectID
FREngine.ILicenses licenses = Engine.GetAvailableLicenses(projectId);
int selectedIndex = 0; // 选择许可证
FREngine.ILicense license = licenses.Item(selectedIndex);
Engine.SetCurrentLicense(license);
该对象在以下 Windows 演示工具中使用:用户模式训练实用工具

另请参阅

许可证 IEngine::SetCurrentLicense 使用集合 使用属性