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() 的详情部分。

本站文档由 北京智网畅联科技有限公司 整理、翻译并提供 · Documentation compiled and provided by Beijing ZNetLink Technology Co., Ltd.

交流群 · QQ Group:OPNET/智网妙算网络仿真交流群(群号 486383494)

原文档 © 2017 Riverbed Technology · 本站为公益翻译,由 AI 辅助完成,请仔细甄别

Original documentation © 2017 Riverbed Technology. Community translation, AI-assisted. Contact: jiazequn@znetlink.com