Class Metered
Class Metered
Namespace: Aspose.BarCode
Assembly: Aspose.BarCode.dll (25.1.0)
미터 키를 설정하는 메서드를 제공합니다.
public class Metered
상속
상속된 멤버
object.GetType(), object.MemberwiseClone(), object.ToString(), object.Equals(object?), object.Equals(object?, object?), object.ReferenceEquals(object?, object?), object.GetHashCode()
예제
이 예제에서는 미터 공용 키와 개인 키를 설정하려고 시도합니다.
Metered matered = new Metered();
matered.SetMeteredKey("PublicKey", "PrivateKey");
Dim matered As Metered = New Metered
matered.SetMeteredKey("PublicKey", "PrivateKey")
생성자
Metered()
public Metered()
메서드
GetConsumptionCredit()
소비 크레딧을 가져옵니다.
public static decimal GetConsumptionCredit()
반환
소비 수량
GetConsumptionQuantity()
소비 파일 크기를 가져옵니다.
public static decimal GetConsumptionQuantity()
반환
소비 수량
GetProductName()
라이선스가 있는 제품의 이름을 가져옵니다.
public string GetProductName()
반환
제품 이름
IsMeteredLicensed()
미터가 라이선스가 있는지 확인합니다.
public static bool IsMeteredLicensed()
반환
참 또는 거짓
SetMeteredKey(string, string)
미터 공용 키와 개인 키를 설정합니다. 미터 라이선스를 구매하면, 애플리케이션 시작 시 이 API를 호출해야 하며, 일반적으로 이것으로 충분합니다. 그러나 소비 데이터를 업로드하는 데 항상 실패하고 24시간을 초과하면 라이선스가 평가 상태로 설정됩니다. 이런 경우를 피하기 위해 라이선스 상태를 정기적으로 확인해야 하며, 평가 상태인 경우 이 API를 다시 호출해야 합니다.
public void SetMeteredKey(string publicKey, string privateKey)
매개변수
publicKey
string
공용 키
privateKey
string
개인 키