如何在 IronOCR 中套用許可證金鑰

This article was translated from English: Does it need improvement?
Translated
View the article in English

許可證密鑰是一長串字串,以到期日期結尾。 請確保正確複製,不要有空格。

IRONOCR-MYLICENSE-KEY-1EF01-RENEW.SUPPORT.01.JAN.2050

應用許可證密鑰最可靠的方法是在呼叫庫之前,直接在程式碼中應用。

// Set the license key for IronOCR before using the library
IronOcr.Installation.LicenseKey = "IRONOCR-MYLICENSE-KEY-RENEW.SUPPORT.01.JAN.2050";
// Set the license key for IronOCR before using the library
IronOcr.Installation.LicenseKey = "IRONOCR-MYLICENSE-KEY-RENEW.SUPPORT.01.JAN.2050";
' Set the license key for IronOCR before using the library
IronOcr.Installation.LicenseKey = "IRONOCR-MYLICENSE-KEY-RENEW.SUPPORT.01.JAN.2050"
$vbLabelText   $csharpLabel

如需了解更多選項,包括在web.configappsettings.json中設定許可證金鑰,請參閱此常見問題解答頁面以取得更多資訊:

IronOCR 授權金鑰常見問題解答

Curtis Chau
技術作家

Curtis Chau 擁有卡爾頓大學計算機科學學士學位,專注於前端開發,擅長於 Node.js、TypeScript、JavaScript 和 React。Curtis 熱衷於創建直觀且美觀的用戶界面,喜歡使用現代框架並打造結構良好、視覺吸引人的手冊。

除了開發之外,Curtis 對物聯網 (IoT) 有著濃厚的興趣,探索將硬體和軟體結合的創新方式。在閒暇時間,他喜愛遊戲並構建 Discord 機器人,結合科技與創意的樂趣。

準備好開始了嗎?
Nuget 下載 5,167,857 | Version: 2025.11 剛發表