Class Metered

Class Metered

ชื่อพื้นที่: Aspose.Email การประชุม: Aspose.Email.dll (25.7.0)

ให้วิธีการในการตั้งค่ากุญแจวัด

public class Metered

Inheritance

object Metered

Examples

ในตัวอย่างนี้จะมีการพยายามที่จะตั้งค่ากุญแจสาธารณะและส่วนตัว

Metered matered = new Metered();
    matered.SetMeteredKey("PublicKey", "PrivateKey");
Dim matered As Metered = New Metered
    matered.SetMeteredKey("PublicKey", "PrivateKey")

Constructors

Metered()

เริ่มต้น instance ใหม่ของชั้นนี้

public Metered()

Properties

IsBillingServiceRun

public static bool IsBillingServiceRun { get; }

คุณสมบัติมูลค่า

bool

Methods

GetConsumptionCredit()

รับเครดิตการบริโภค

public static decimal GetConsumptionCredit()

Returns

decimal

จํานวนการบริโภค

GetConsumptionQuantity()

รับขนาดไฟล์การบริโภค

public static decimal GetConsumptionQuantity()

Returns

decimal

จํานวนการบริโภค

GetProductName()

public string GetProductName()

Returns

string

IsMeteredLicensed()

ตรวจสอบว่าเมตเตอร์ได้รับอนุญาต

public static bool IsMeteredLicensed()

Returns

bool

จริงหรือผิด

SetMeteredKey(รั้ว, รั้ว)

เก็บคีย์สาธารณะและส่วนตัวหากคุณซื้อใบอนุญาตที่วัดเมื่อเริ่มต้นการใช้งาน API นี้ควรเรียกว่าปกตินี้เพียงพออย่างไรก็ตามหากไม่สามารถอัปโหลดข้อมูลการบริโภคได้ตลอดเวลาและเกิน 24 ชั่วโมงใบอนุญาตจะถูกกําหนดไว้ในสถานะการประเมินเพื่อหลีกเลี่ยงกรณีดังกล่าวคุณควรตรวจสอบสถานะใบอนุญาตอย่างเป็นประจําถ้ามันเป็นสถานะการประเมินเรียก API นี้อีกครั้ง

public void SetMeteredKey(string publicKey, string privateKey)

Parameters

publicKey string

คีย์สาธารณะ

privateKey string

คีย์ส่วนตัว

 แบบไทย