Ets_Obj_Attr_Intended_Status_Set()

摘要

设置对象属性的 Intended(用户设定)状态。

语法

Ets_Obj_Attr_Intended_Status_Set (obj_hndl, attr_name, is_intended)
参数 类型 说明
obj_hndl EtsT_Obj_Handle 目标对象的句柄。
attr_name const char * 目标属性的名称。
is_intended EtsT_Boolean 指示该属性是否应被设置为 Intended。

返回类型

EtsT_Compcode

若操作成功则返回 EtsC_Compcode_Success,否则返回 EtsC_Compcode_Failure。

头文件

ets_api_obj.h

详情

若 is_intended 为 EtsC_False,该函数会使属性值“回退”到其继承值。没有办法让属性直接从进程模型的默认值取值(跳过底层模型的赋值)。要让属性取得进程默认值,必须在网络对象上设置(network-intend)该默认值。(关于 intended 状态的进一步说明,参见 Ets_Obj_Attr_Intended_Status_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