Difference between revisions of "CALicense::ErrorText/zh"

(Created page with "来自前面CALicense方法调用失败原因的的状态代码。尤其是,在调用NewCAEngine方法后,这提供了关于...")
 
(10 intermediate revisions by the same user not shown)
Line 6: Line 6:
 
来自前面[[CALicense/zh|CALicense]]方法调用失败原因的的状态代码。尤其是,在调用[[CALicense::NewCAEngine/zh|NewCAEngine]]方法后,这提供了关于失败原因的信息。
 
来自前面[[CALicense/zh|CALicense]]方法调用失败原因的的状态代码。尤其是,在调用[[CALicense::NewCAEngine/zh|NewCAEngine]]方法后,这提供了关于失败原因的信息。
  
The error number can be obtained using the [[CALicense::ErrorCode|ErrorCode]] property. Some codes that could encountered (this is not comprehensive) include:
+
错误代码能通过使用[[CALicense::ErrorCode/zh|ErrorCode]]属性获取。一些代码可能会遇到(不全面):
:71 – “The maximum number of CAEngine instances allowed are already in use”
+
:71 – “使用的CAEngine实例数量已达到允许的上限”
:72 – “Invalid license code”
+
:72 – “无效注册码”
:73 – “Stale license code”
+
:73 – “过期注册码”
:74 – “Expired license code”
+
:74 – “到期注册码”
:75 – “No ADE license code is present”
+
:75 – “没有安装ADE注册码”
:76 – “Not an application license code” (from SetApplicationLicenseCode method)
+
:76 – “非应用程序注册码” (来自SetApplicationLicenseCode方法)
  
The [[CAEngine]] object has property with the same name (and it uses a consistent set of error codes with this one). Once you have a [[CAEngine]] instance, you will need to check its [[CAEngine::ErrorText|ErrorText]] property -- not the ErrorText property of the [[CALicense]]. Use this [[CALicense::ErrorText]] only to catch errors during instantiation of the [[CAEngine]].
+
[[CAEngine/zh|CAEngine]]对象具有相同名称的属性(使用一组和这一致的错误代码)。一旦你获得一个[[CAEngine/zh|CAEngine]]实例,你将需要检查其[[CAEngine::ErrorText/zh|ErrorText]]属性——不是[[CALicense/zh|CALicense]]的ErrorText属性。此[[CALicense::ErrorText/zh|CALicense::ErrorText]]仅用来捕捉[[CAEngine/zh|CAEngine]]实例化过程中的错误。
  
== Data Type ==
+
== 数据类型 ==
  
string
+
string:字符串
  
== Access ==
+
== 存取 ==
  
read
+
读取
  
= Example usage =
+
= 示例用法 =
  
== C# ==
+
== C# ==
  
 
  CALicense lic = new ADE.CALicense();
 
  CALicense lic = new ADE.CALicense();
Line 36: Line 36:
 
  ...
 
  ...
  
= See Also =
+
= 另请参考 =
  
* [[CALicense::NewCAEngine]] method
+
* [[CALicense::NewCAEngine/zh|CALicense::NewCAEngine]]方法
* [[CALicense::ErrorCode]]
+
* [[CALicense::ErrorCode/zh|CALicense::ErrorCode]]

Latest revision as of 07:07, 25 October 2015

ADE User Guide > ADE Server Class Reference > CALicense

Other languages:
English • ‎中文

property string CALicense::ErrorText

来自前面CALicense方法调用失败原因的的状态代码。尤其是,在调用NewCAEngine方法后,这提供了关于失败原因的信息。

错误代码能通过使用ErrorCode属性获取。一些代码可能会遇到(不全面):

71 – “使用的CAEngine实例数量已达到允许的上限”
72 – “无效注册码”
73 – “过期注册码”
74 – “到期注册码”
75 – “没有安装ADE注册码”
76 – “非应用程序注册码” (来自SetApplicationLicenseCode方法)

CAEngine对象具有相同名称的属性(使用一组和这一致的错误代码)。一旦你获得一个CAEngine实例,你将需要检查其ErrorText属性——不是CALicense的ErrorText属性。此CALicense::ErrorText仅用来捕捉CAEngine实例化过程中的错误。

数据类型

string:字符串

存取

读取

示例用法

C#

CALicense lic = new ADE.CALicense();
CAEngine ade = lic.NewCAEngine();
if ( ade == null) {
   MessageBox.Show( "Error " + lic.ErrorCode + ": " + lic.ErrorText, "ADE could not be started", MessageBoxButtons.OK );
   return
}
...

另请参考

Comments


You are not allowed to post comments.