將IronPDF許可證密鑰應用於項目
This article was translated from English: Does it need improvement?
Translated
View 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";
' 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 下載 18,560,885 | 版本: 2026.4 剛剛發布

