Orep_Rs_Application_Instance_Aging_Info_Set()
摘要
为 collection 设置老化信息,决定该 collection 在 Report Server 上的存续时长。
语法
Orep_Rs_Application_Instance_Aging_Info_Set (OrepT_Rs_Application_Instance *instance_ptr, OrepT_Rs_Time_Units units, int duration)
返回类型
PrgT_Compcode
操作成功时返回 PrgC_Compcode_Success,否则返回 PrgC_Compcode_Failure。
头文件
orep_report_server.h
详情
可以对不同的时间单位多次调用此函数。例如,要设置 1 天 5 小时的老化周期,调用此函数两次:
- 一次将
units设为OrepC_Rs_Time_Units_Days,duration设为 1 - 一次将
units设为OrepC_Rs_Time_Units_Hours,duration设为 5
**注意:**尽管 Report Server 支持 OrepT_Rs_Time_Units 指定的所有单位(从年到秒),但 Report Server 管理页面只能显示天、小时和分钟。大于天的时间间隔将按等效的天数显示。