在项目中应用 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
有关更多选项,包括web.config和appsettings.json,请参阅以下操作页面以获取更多信息:IronPDF许可证密钥
准备开始了吗?
Nuget 下载 17,012,929 | 版本: 2025.12 刚刚发布






