domino代理运行时,读取文档如何判断文件是否出于锁定状态

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)
附加文档|商标|

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值