可以使用同样的机制来记录与创建、修改和删除组相关联的事件。
You use the same mechanism for recording events associated with creating, modifying, and deleting groups.
示例代码下载中包含扩展的示例代码(展示了在这部分的例子中,为注册的WatchKey进行的文件修改与删除)。
Extended sample code (demonstrating file modification and deletion for the registered WatchKey in this section's example) is included in the sample code download.
与之类似,将仅对第一个匹配的帐户执行修改或删除操作。
Similarly, a modification or a delete operation will be done only to the first matching account.
应用推荐