將 IronPDF 許可證密鑰應用於項目
This article was translated from English: Does it need improvement?
TranslatedView the article in English
許可證密鑰是一長串字串,以許可證支援到期日期結尾。 請確保正確複製。
IRONPDF-MYLICENSE-KEY-1EF01-EXPIRES.01.JAN.2050許可證密鑰字串中任何多餘的空格或字元都會導致以下錯誤:
Unhandled exception. IronSoftware.Exceptions.LicensingException: IronPDF must be licensed for development.應用許可證密鑰最可靠的方法是在呼叫庫之前,直接在程式碼中應用。
// Set the license key for IronPDF before making any calls to the library.
IronPdf.License.LicenseKey = "IRONPDF-MYLICENSE-KEY-EXPIRES.01.JAN.2050";// Set the license key for IronPDF before making any calls to the library.
IronPdf.License.LicenseKey = "IRONPDF-MYLICENSE-KEY-EXPIRES.01.JAN.2050";$vbLabelText $csharpLabel
{i:(從 IronPDF 版本 2024.1.20 開始,使用者必須至少擁有一個免費的[試用許可證金鑰]才能在其專案中使用 IronPDF 庫。 專案缺少許可證金鑰將拋出上述 LicensingException 錯誤。
如需了解更多選項,包括web.config和appsettings.json ,請參閱以下操作指南頁面: IronPDF 許可證金鑰
準備好開始了嗎?
Nuget 下載 17,012,929 | 版本: 2025.12 剛剛發布






