鐵言 開始使用 使用許可證密鑰 Using IronWord License Keys Curtis Chau 更新日期:6月 9, 2025 Download IronWord NuGet 下載 Start Free Trial Copy for LLMs Copy for LLMs Copy page as Markdown for LLMs Open in ChatGPT Ask ChatGPT about this page Open in Gemini Ask Gemini about this page Open in Grok Ask Grok about this page Open in Perplexity Ask Perplexity about this page Share Share on Facebook Share on X (Twitter) Share on LinkedIn Copy URL Email article This article was translated from English: Does it need improvement? Translated View the article in English How to Get a License Key Adding an IronWord license key allows you to deploy your project live without restrictions or watermarks. You can buy a license key or sign up for a free 30-day trial key here. Step 1: Download the Latest Version of IronWord Step 2: Apply Your License Key Set your license using code Add this code to the startup of your application, before IronWord is used. :path=/static-assets/word/content-code-examples/get-started/license-keys-apply.cs IronWord.License.LicenseKey = "IRONWORD.MYLICENSE.KEY.1EF01"; IronWord.License.LicenseKey = "IRONWORD.MYLICENSE.KEY.1EF01" $vbLabelText $csharpLabel Set your license using Web.Config or App.Config To apply a key globally to your application using Web.Config or App.Config, add the following key to your config file in appSettings. <configuration> <appSettings> <add key="IronWord.LicenseKey" value="IRONWORD.MYLICENSE.KEY.1EF01"/> </appSettings> </configuration> <configuration> <appSettings> <add key="IronWord.LicenseKey" value="IRONWORD.MYLICENSE.KEY.1EF01"/> </appSettings> </configuration> XML There is a known licensing issue with IronWord versions released before 2024.3.5 on certain projects: ASP.NET projects .NET Framework version >= 4.6.2 The key stored in a Web.config file is NOT being picked up and used by the product. Visit the 'Setting License Key in Web.config' troubleshooting article to learn more. Ensure that IronWord.License.IsLicensed returns true to verify the license. Set your license key using a .NET Core appsettings.json file To apply a key globally to your .NET Core application: Add a JSON file to your project called appsettings.json in the root directory of your project. Add an IronWord.LicenseKey key to your JSON config file. The value should be your license key. Ensure that the file properties include Copy to Output Directory: Copy always. File: appsettings.json { "IronWord.LicenseKey": "IRONWORD.MYLICENSE.KEY.1EF01" } Step 3: Validate Your License Key Verify the Installed License Key To verify whether the license key has been applied correctly, you can check the IsLicensed property. Use the following code snippet: :path=/static-assets/word/content-code-examples/get-started/license-keys-is-licensed.cs // Check if the license key has been applied bool licensed = IronWord.License.IsLicensed; ' Check if the license key has been applied Dim licensed As Boolean = IronWord.License.IsLicensed $vbLabelText $csharpLabel Validate the License Key To ensure the validity of your license or trial key, you can use the following code snippet: :path=/static-assets/word/content-code-examples/get-started/license-keys-is-valid.cs // Check if a given license key string is valid bool valid = IronWord.License.IsValidLicense("IRONWORD.MYLICENSE.KEY.1EF01"); ' Check if a given license key string is valid Dim valid As Boolean = IronWord.License.IsValidLicense("IRONWORD.MYLICENSE.KEY.1EF01") $vbLabelText $csharpLabel If the return value is True, it means the key is valid, and you can proceed with using IronWord. However, if the return value is False, it indicates that the key is invalid. Step 4: Getting Started with Your Project To get started with IronWord, we highly recommend following our comprehensive tutorial on how to Get Started with IronWord. This tutorial offers detailed instructions and examples to help you grasp the basics of using IronWord. Questions or Need Support? To use IronWord in live projects, you'll require a paid or trial license key, which you can obtain by purchase a license. The trial license is available by visiting this link. For a comprehensive collection of code examples, tutorials, licensing details, and extensive documentation, please visit the IronWord section on our website. If you have any questions, feel free to reach out to support@ironsoftware.com. 常見問題解答 如何取得我的 C# 專案的許可證金鑰? 您可以在 Iron Software 許可頁面上購買許可證金鑰或註冊免費 30 天試用金鑰。 如何在C#程式碼中應用許可證密鑰? 使用IronWord.License.LicenseKey屬性將您的授權金鑰新增至應用程式的啟動項目。 如何使用 Web.Config 或 App.Config 設定許可證金鑰? 在 Web.Config 或 App.Config 檔案的 appSettings 部分中新增一個名為IronWord.LicenseKey的鍵,並將你的授權金鑰作為其值。 如果 ASP.NET 專案無法辨識許可證金鑰,我該怎麼辦? 如果 ASP.NET 專案無法識別金鑰,請參閱有關在 Web.config 中設定許可證金鑰的故障排除文章。 如何在.NET Core應用程式中使用appsettings.json設定許可證金鑰? 將包含授權值的IronWord.LicenseKey鍵新增至專案根目錄下的 appsettings.json 檔案。 如何驗證我的授權金鑰是否已在 IronWord 中正確套用? 檢查IronWord.License.IsLicensed屬性,確保許可證金鑰已正確安裝。如果安裝正確,則該屬性應傳回 true。 如何驗證我的許可證金鑰的有效性? 使用IronWord.License.IsValid屬性來確認您的授權金鑰是否仍然有效。 哪裡可以找到IronWord的教學和文件? 請造訪「IronWord 入門」綜合教程,以取得詳細說明和範例。 我該如何獲得 IronWord 問題或問題的支持? 如有任何問題或需要協助,請聯絡 Iron Software 支援團隊,信箱為 support@ironsoftware.com。 沒有授權金鑰可以使用IronWord嗎? 未取得許可證金鑰而使用 IronWord 將會導致功能受限或出現浮水印。取得免費試用版或購買授權即可無限制地使用 IronWord。 IronWord 是否完全相容於 .NET 10?許可證密鑰能否以相同的方式應用? 是的。 IronWord 支援 .NET 10(以及 .NET 9、8、7、6、.NET Core、.NET Standard 2.0+ 和 .NET Framework 4.6.2+ 版本),並且在 .NET 10 下,許可證金鑰的工作方式與之前相同,可以透過程式碼、Web.Config/Apps.Configson 檔案進行設定。 ([ironsoftware.com](https://ironsoftware.com/csharp/word/get-started/windows/?utm_source=openai)) Curtis Chau 立即與工程團隊聊天 技術作家 Curtis Chau 擁有卡爾頓大學計算機科學學士學位,專注於前端開發,擅長於 Node.js、TypeScript、JavaScript 和 React。Curtis 熱衷於創建直觀且美觀的用戶界面,喜歡使用現代框架並打造結構良好、視覺吸引人的手冊。除了開發之外,Curtis 對物聯網 (IoT) 有著濃厚的興趣,探索將硬體和軟體結合的創新方式。在閒暇時間,他喜愛遊戲並構建 Discord 機器人,結合科技與創意的樂趣。 準備好開始了嗎? Nuget 下載 25,807 | 版本: 2025.11 剛剛發布 免費 NuGet 下載 總下載量:25,807 查看許可證