跳轉到主要內容
此物件是可用 (已啟用) 的授權集合。可透過 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 Demo Tools 中使用:User Pattern Training Utility

另請參閱

授權 IEngine::SetCurrentLicense 集合的使用 屬性的使用