在项目中应用 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
如需了解更多选项,包括 web.config 和 appsettings.json,请参阅以下操作指南页面: IronPDF许可证密钥
准备开始了吗?
Nuget 下载 18,560,885 | 版本: 2026.4 刚刚发布

