使用 IronPPT 許可證金鑰

This article was translated from English: Does it need improvement?
Translated
View the article in English

如何取得許可證密鑰

新增 IronPPT 許可證金鑰後,您可以無限制地部署您的項目,且不會新增浮水印。

你可以購買許可證密鑰或註冊點擊此處取得30天免費試用金鑰


第一步:下載最新版本的IronPPT

立即開始在您的項目中使用 IronPPT 並免費試用。

第一步:
green arrow pointer


步驟 2:套用您的許可證金鑰

使用代碼設定您的許可證

將此程式碼片段加入應用程式的啟動過程中(例如,在Program.csStartup.cs中),然後再使用任何 IronPPT 功能。

:path=/static-assets/ppt/content-code-examples/how-to/license-keys-apply.cs
// This line of code is setting the license key for the IronPPT library.
// Ensure that you have a valid license key provided by IronPPT to avoid any licensing issues.
// The line below should typically be at the start of your application
// initialization process to ensure that the library is appropriately licensed
// before any library functions are utilized. Ensure that the IronPPT 
// namespace and relevant assemblies are referenced in your project.

IronPPT.License.LicenseKey = "IRONPPT.MYLICENSE.KEY.1EF01";
' This line of code is setting the license key for the IronPPT library.
' Ensure that you have a valid license key provided by IronPPT to avoid any licensing issues.
' The line below should typically be at the start of your application
' initialization process to ensure that the library is appropriately licensed
' before any library functions are utilized. Ensure that the IronPPT 
' namespace and relevant assemblies are referenced in your project.

IronPPT.License.LicenseKey = "IRONPPT.MYLICENSE.KEY.1EF01"
$vbLabelText   $csharpLabel

使用 .NET Core appsettings.json檔案設定您的許可證金鑰

若要在 .NET Core 應用程式中全域應用許可證金鑰,請依照下列步驟操作:

  • 在專案根目錄下新增一個名為appsettings.json的 JSON 檔案。
  • 在您的 JSON 設定檔中新增一個IronPPT.LicenseKey條目,並將其值設定為您的特定許可證金鑰。
  • 確保檔案屬性包含 複製到輸出目錄: 始終複製

文件:appsettings.json

{
    "IronPPT.LicenseKey": "IronPPT.MYLICENSE.KEY.1EF01"
}

步驟 3:驗證您的許可證金鑰

驗證已安裝的授權金鑰

若要驗證許可證金鑰是否已正確套用,請檢查IsLicensed屬性。 請使用以下程式碼片段:

:path=/static-assets/ppt/content-code-examples/how-to/license-keys-is-licensed.cs
// This code snippet checks whether the IronPPT license key has been successfully applied.
// It retrieves the license status using the IronPPT library's License class.

// Declaration and initialization of a boolean variable to store the license status
bool licensed = IronPPT.License.IsLicensed;

// It is assumed that the IronPPT library is correctly referenced,
// and that the license information has been set prior to this check.
// This boolean will be true if the license is applied correctly; otherwise, it will be false.

// The code below demonstrates how you might use this information in a larger application.
if (licensed)
{
    Console.WriteLine("The IronPPT license has been successfully applied.");
}
else
{
    Console.WriteLine("The IronPPT license is not applied. Please verify the license details.");
}
' This code snippet checks whether the IronPPT license key has been successfully applied.
' It retrieves the license status using the IronPPT library's License class.

' Declaration and initialization of a boolean variable to store the license status
Dim licensed As Boolean = IronPPT.License.IsLicensed

' It is assumed that the IronPPT library is correctly referenced,
' and that the license information has been set prior to this check.
' This boolean will be true if the license is applied correctly; otherwise, it will be false.

' The code below demonstrates how you might use this information in a larger application.
If licensed Then
	Console.WriteLine("The IronPPT license has been successfully applied.")
Else
	Console.WriteLine("The IronPPT license is not applied. Please verify the license details.")
End If
$vbLabelText   $csharpLabel

驗證許可證密鑰

請使用以下程式碼片段驗證您的授權或試用金鑰的有效性:

:path=/static-assets/ppy/content-code-examples/how-to/license-keys-is-valid.cs
// 此代碼段不可用!
IRON VB CONVERTER ERROR developers@ironsoftware.com
$vbLabelText   $csharpLabel

如果傳回值為true ,表示金鑰有效,您可以繼續使用 IronPPT。 如果傳回false ,則表示該鍵無效。


第四步:開始你的專案

要開始使用 IronPPT,我們強烈建議您按照我們關於如何開始使用 IronPPT 的全面教學進行操作。 本教學提供詳細的說明和範例,幫助您掌握 IronPPT 的基本使用方法。


有任何疑問或需要協助?

要在實際專案中使用 IronPPT,您需要付費或試用許可證金鑰,您可以透過購買授權來獲得該金鑰。 您可以透過造訪此連結來取得試用許可證。

如需查看完整的程式碼範例、教學、授權詳情和詳細文檔,請造訪我們網站上的IronPPT部分。

如有任何疑問,請隨時聯絡。support@ironsoftware.com

常見問題解答

如何下載 C# 簡報庫的最新版本?

要下載 C# 簡報庫的最新版本,請訪問 IronPPT 網站並按照授權頁面上的下載說明進行操作。

在 C# 項目中應用授權金鑰的步驟是什麼?

要在 C# 項目中應用授權金鑰,您可以將代碼片段添加到啟動文件中,例如 Program.csStartup.cs,或使用 appsettings.json 文件將密鑰集成到 .NET Core 應用程序中。

如何驗證我的授權金鑰是否正確安裝?

您可以通過在代碼中檢查 IsLicensed 屬性來驗證授權金鑰的安裝。如果返回 true,則表示授權已正確安裝。

如果我的授權金鑰無效,我該怎麼辦?

如果您的授權金鑰無效,首先確保輸入正確。使用 IsValid 屬性檢查其有效性。如果問題仍然存在,請聯繫 Iron Software 支持以獲取幫助。

我可以使用 appsettings.json 文件應用授權金鑰嗎?

是的,您可以通過添加 IronPPT.LicenseKey 條目並將其值設置為您的特定授權金鑰來使用 appsettings.json 文件應用授權金鑰。

我可以在哪裡找到使用 C# 簡報庫的教程?

IronPPT 網站上提供了一個使用 C# 簡報庫的綜合教程,提供詳細的說明和示例,幫助您開始使用 IronPPT。

購買授權包含哪些支持?

購買授權包括一年的支持和更新。對於任何問題或疑問,您可以聯繫 support@Iironsoftware.com。

C# 簡報庫是否提供免費試用?

是的,可以獲得 30 天的免費試用授權金鑰。您可以通過訪問 IronPPT 網站上的試用授權頁面獲得。

IronPPT 是否與 .NET 10 相容?

是 - IronPPT 支援 .NET 10。它相容於 .NET Core 10,以及 .NET Core 9、8、7、6 和 .NET Standard 2.0+ 和 .NET Framework 4.6.2+。([ironsoftware.com](https://ironsoftware.com/csharp/ppt/?utm_source=openai))

Curtis Chau
技術作家

Curtis Chau 擁有卡爾頓大學計算機科學學士學位,專注於前端開發,擅長於 Node.js、TypeScript、JavaScript 和 React。Curtis 熱衷於創建直觀且美觀的用戶界面,喜歡使用現代框架並打造結構良好、視覺吸引人的手冊。

除了開發之外,Curtis 對物聯網 (IoT) 有著濃厚的興趣,探索將硬體和軟體結合的創新方式。在閒暇時間,他喜愛遊戲並構建 Discord 機器人,結合科技與創意的樂趣。

準備好開始了嗎?
Nuget 下載 3,325 | Version: 2025.11 剛發表