remove
类: slreq.Justification
命名空间: slreq
删除申述项
语法
count = remove(jt, 'PropertyName', PropertyValue)
说明
删除属于父申述count
= remove(jt
, 'PropertyName'
, PropertyValue
)jt
的子申述项,并附加由 PropertyName
和 PropertyValue
指定的属性。以 count
形式返回已删除的项目数。
输入参数
输出参量
示例
删除申述项目
加载需求集文件。
rs = slreq.load('C:\MATLAB\My_Requirements_Set_1.slreqx');
myJustifications = find(rs, 'Type', 'Justification')
myJustifications = 1×10 Justification array with properties: Id Summary Description Keywords Rationale CreatedOn CreatedBy ModifiedBy SID FileRevision ModifiedOn Dirty Comments
count = remove(myJustifications(1), 'CreatedBy', 'Jane Doe')
count = 1
版本历史记录
在 R2018b 中推出