Difference between revisions of "CAEngine::GetObjectByName/zh"

(Created page with "= API 错误 =")
 
(3 intermediate revisions by the same user not shown)
Line 6: Line 6:
 
= Get(objName) =
 
= Get(objName) =
  
Either of these synonymous methods return an object of type [[CAObject]] for an existing Analytica object with identifier ''«objName»''.  
+
对于现有的标识符为''«objName»''的Analytica对象,这两种等价的方法之一返回[[CAObject/zh | CAObject]]类型的一个对象。  
  
This is the primary method used for obtaining instances of Analytica objects, and hence is one of the most commonly used methods in ADE.  Because it is so common, the '''Get''' synonym is provided.
+
这是用来获取Analytica对象实例的首选方法,因此是ADE中最常用的方法。因为它如此常见,所以提供了'''Get'''同义词。
  
 
= 参 数 =
 
= 参 数 =
  
; objName:字符串——Analytica标识符,不分大小写
+
; objName:string(字符串)——Analytica标识符,不分大小写
  
 
= 返回值 =
 
= 返回值 =
Line 28: Line 28:
 
= API 错误 =
 
= API 错误 =
  
* 41 - "invalid name for object"
+
* 41 - "对象名称无效"

Latest revision as of 08:08, 20 October 2015

ADE User Guide > ADE Server Class Reference > CAEngine

Other languages:
English • ‎中文

GetObjectByName(objName)

Get(objName)

对于现有的标识符为«objName»的Analytica对象,这两种等价的方法之一返回 CAObject类型的一个对象。

这是用来获取Analytica对象实例的首选方法,因此是ADE中最常用的方法。因为它如此常见,所以提供了Get同义词。

参 数

objName:string(字符串)——Analytica标识符,不分大小写

返回值

CAObject

示例用法

// C#
CAObject obj;
obj = ade.GetObjectByName("Monthly_revenue");
obj = ade.Get("Monthly_revenue");  // alternate equiv. form


API 错误

  • 41 - "对象名称无效"
Comments


You are not allowed to post comments.