CALicense::ErrorText

Revision as of 07:54, 23 October 2015 by Jhuawen (talk | contribs) (Created page with "错误代码能通过使用ErrorCode属性获取。一些代码可能会遇到(不全面): :71 – “使用的CAEngine实例数量已达到...")

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方法)

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 ErrorText property -- not the ErrorText property of the CALicense. Use this CALicense::ErrorText only to catch errors during instantiation of the CAEngine.

Data Type

string

Access

read

Example usage

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
}
...

See Also

Comments


You are not allowed to post comments.