Class Metered
Class Metered
이름 공간 : Aspose.Words 모임: Aspose.Words.dll (25.4.0)
측정된 키를 설정하는 방법을 제공합니다.
public class Metered
Inheritance
상속 회원들
object.GetType() , object.MemberwiseClone() , object.ToString() , object.Equals(object?) , object.Equals(object?, object?) , object.ReferenceEquals(object?, object?) , object.GetHashCode()
Examples
이 예제에서는 공공 및 민간 키를 측정하려는 시도가 이루어질 것입니다.
Metered matered = new Metered();
matered.SetMeteredKey("PublicKey", "PrivateKey");
Dim matered As Metered = New Metered
matered.SetMeteredKey("PublicKey", "PrivateKey")
Constructors
Metered()
이 클래스의 새로운 사례를 시작합니다.
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
개인 키