Ets_Topo_Parent_Attr_Set()
摘要
根据对象句柄和属性名称,设置顶层属性的值。
语法
Ets_Topo_Parent_Attr_Set (child_obj_hndl, attr_name, …)
| 参数 | 类型 | 说明 |
|---|---|---|
child_obj_hndl |
EtsT_Obj_Handle |
包含待设置属性的对象的子对象。 |
attr_name |
const char * |
待设置属性的名称。 |
… |
(可变参数) | 要设置到指定属性上的值。 |
返回类型
EtsT_Compcode
若属性设置成功,返回 EtsC_Compcode_Success;否则返回 EtsC_Compcode_Failure。
头文件
ets_api_topo.h
详情
在使用活动属性时,使用此函数设置顶层属性的值。在其他场景下,组合使用 Ets_Topo_Parent_Get() 和 Ets_Obj_Attr_Set() 效率更高,应当优先于 Ets_Topo_Parent_Attr_Set() 使用。关于为何使用此函数的更多信息,参见 Ets_Topo_Parent_Attr_Get() 的详情部分。