CAEngine::GetObjectByName
ADE User Guide > ADE Server Class Reference > CAEngine
GetObjectByName(objName)
Get(objName)
对于现有的标识符为«objName»的Analytica对象,这两种等价的方法之一返回 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.
参 数
- objName:字符串——Analytica标识符,不分大小写
返回值
示例用法
// C#
CAObject obj;
obj = ade.GetObjectByName("Monthly_revenue");
obj = ade.Get("Monthly_revenue"); // alternate equiv. form
API 错误
- 41 - "对象名称无效"
Comments
Enable comment auto-refresher