如何在 IronWebScraper 中套用許可證金鑰

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

許可證密鑰是一長串字串,以到期日期結尾。 請確保正確複製,不要有空格。

IRONWEBSCRAPER-MYLICENSE-KEY-1EF01-EXPIRES.01.JAN.2050

應用許可證密鑰最可靠的方法是在呼叫庫之前,直接在程式碼中應用。

// Set the IronWebScraper license key, which is a necessary step 
// to use the library without limitations. Make sure to replace 
// this with your actual license key in your production environment.
IronWebScraper.License.LicenseKey = "IRONWEBSCRAPER-MYLICENSE-KEY-1EF01-EXPIRES.01.JAN.2050";
// Set the IronWebScraper license key, which is a necessary step 
// to use the library without limitations. Make sure to replace 
// this with your actual license key in your production environment.
IronWebScraper.License.LicenseKey = "IRONWEBSCRAPER-MYLICENSE-KEY-1EF01-EXPIRES.01.JAN.2050";
$vbLabelText   $csharpLabel

如需了解更多選項,包括使用 web.config 和 appsettings.json,請參閱此常見問題頁面以取得更多資訊:

IronWebScraper 許可證金鑰常見問題解答

柯蒂斯·週
技術撰稿人

Curtis Chau擁有卡爾頓大學電腦科學學士學位,專長於前端開發,精通Node.js、TypeScript、JavaScript和React。他熱衷於打造直覺美觀的使用者介面,喜歡使用現代框架,並擅長撰寫結構清晰、視覺效果出色的使用者手冊。

除了開發工作之外,柯蒂斯對物聯網 (IoT) 也抱有濃厚的興趣,致力於探索硬體和軟體整合的創新方法。閒暇時,他喜歡玩遊戲和製作 Discord 機器人,將他對科技的熱愛與創造力結合。

準備好開始了嗎?
Nuget 下載 128,072 | 版本: 2025.12 剛剛發布