Class Metered
Class Metered
ชื่อพื้นที่: Aspose.Cells การประกอบ: Aspose.Cells.dll (25.4.0)
ให้วิธีการในการตั้งค่ากุญแจวัด
public class Metered
Inheritance
Examples
ในตัวอย่างนี้จะมีการพยายามที่จะตั้งค่ากุญแจสาธารณะและส่วนตัว
Metered matered = new Metered();
matered.SetMeteredKey("PublicKey", "PrivateKey");
Dim matered As Metered = New Metered
matered.SetMeteredKey("PublicKey", "PrivateKey")
Constructors
Metered()
เริ่มต้น instance ใหม่ของชั้นนี้
public Metered()
Methods
GetConsumptionCredit()
รับเครดิตการบริโภค
public static decimal GetConsumptionCredit()
Returns
จํานวนการบริโภค
GetConsumptionQuantity()
รับขนาดไฟล์การบริโภค
public static decimal GetConsumptionQuantity()
Returns
จํานวนการบริโภค
GetProductName()
รับชื่อผลิตภัณฑ์
public string GetProductName()
Returns
ชื่อผลิตภัณฑ์
IsMeteredLicensed()
ตรวจสอบว่าเมตเตอร์ได้รับอนุญาต
public static bool IsMeteredLicensed()
Returns
จริงหรือผิด
SetMeteredKey(รั้ว, รั้ว)
เก็บคีย์สาธารณะและส่วนตัวหากคุณซื้อใบอนุญาตที่วัดเมื่อเริ่มต้นการใช้งาน API นี้ควรเรียกว่าปกตินี้เพียงพออย่างไรก็ตามหากไม่สามารถอัปโหลดข้อมูลการบริโภคได้ตลอดเวลาและเกิน 24 ชั่วโมงใบอนุญาตจะถูกกําหนดไว้ในสถานะการประเมินเพื่อหลีกเลี่ยงกรณีดังกล่าวคุณควรตรวจสอบสถานะใบอนุญาตอย่างเป็นประจําถ้ามันเป็นสถานะการประเมินเรียก API นี้อีกครั้ง
public void SetMeteredKey(string publicKey, string privateKey)
Parameters
publicKey
string
คีย์สาธารณะ
privateKey
string
คีย์ส่วนตัว