domino代理运行时,读取文档如何判断文件是否出于锁定状态
这是notes本身一个锁定标志,如果二次开发的话,需要根据自己系统锁结构,进行额外的判断。
If Not tempdoc.LockHolders(0)<>"" Then
MessageBox " 文件处理未锁定状态"
Else
MessageBox " 文件处理锁定状态 暂时不处理"
End If
原文notes帮助说明
LockHolders (NotesDocument - LotusScript®)
Read-only. The names of the holders of a lock.
Note: This property is new with Release 6.
Defined in
NotesDocument
Data type
Array of type String
Syntax
To get: lockHolders = notesDocument .LockHolders
Usage
If the document is locked, the array contains the names of the lock holders. The document can be locked by one or more users or groups.
If the document is not locked, the array contains one element whose value is an empty string ("").
翻译
IBM Domino Designer基本用户指南和参考>LotusScript/COM/OLE类>LotusScript类A-Z>NotesDocument(LotusScript)
锁夹(NotesDocument-LotusScript®)
只读。锁持有人的姓名。
注意:此属性是第6版新增的。
定义于
注释文件
数据类型
字符串类型的数组
语法
要获取:lockHolders=notesDocument。锁夹
用法
如果文档已锁定,则数组包含锁持有者的名称。文档可以由一个或多个用户或组锁定。
如果文档未锁定,则数组包含一个值为空字符串(“”)的元素。
语言交叉引用
Java中的LockHolders属性™ 文档类
@公式语言中的DocLock函数
实例
示例:LockHolders属性(NotesDocument-LotusScript)
此查看操作显示当前文档的锁夹。
父主题:NotesDocument(LotusScript)
相关概念:
锁定文档和设计元素(LotusScript)
附加文档|商标|