ComponentOne OLAP for WinForms帮助文档
自动测试产品中使用已注册组件

动态加载集合的自动测试产品会将集合显示在许可对话框中。因为测试应用类型并不包括中药的许可信息,这一步骤是非常必要的,并且没有任何更简单的方法来处理它。

用户可以通过添加“C1CheckForDesignLicenseAtRuntime”字符串到由ComponentOne控件派生或者包含集合的AssemblyConfiguration属性,避免这一问题的发生。这一属性值由ComponentOne控件直接指定,主要用于在运行时使用设计许可。


例如:

#if AUTOMATED_TESTING
       [AssemblyConfiguration("C1CheckForDesignLicenseAtRuntime")]
#endif
       public class MyDerivedControl : C1LicensedControl
       {
              // ...
       }

需要注意的是,AssemblyConfiguration字符串在字符串赋值之前或者之后,将包含附加文本,因此AssemblyConfiguration字符串同样可以用于其他目的。例如:


[AssemblyConfiguration("C1CheckForDesignLicenseAtRuntime,BetaVersion")]

这个方法仅能用于场景描述。它需要在测试机器上安装的设计许可。分发或者是在其他电脑上安装许可的行为,是违反了EULA规定的。


 

 

 


产品网站:http://www.gcpowertools.com.cn 咨询热线:4006576008 ©2015 西安葡萄城