PropertyObjectFile.Lock ( [passwordString])
Locks the file. The PropertyObjectFile.Protection property specifies the type of protection for the lock. After reading a protected file, TestStand automatically locks the file. Use the PropertyObjectFile.Unlock method to unlock the file.
This method only applies to sequence files. Using this method on other files causes an error. Locking a file causes an error when the PropertyObjectFile.Protection property is set to ProtectedObjectOption_None.
![]() | Note Locking a file does not prevent editing or access to the contents of the file using the TestStand API. |
passwordString As Variant
[In] [Optional] Specifies the password for the lock operation. If no password parameter is specified, the previous password is used. If no previous password was specified, the password is an empty string.