Company Events Academic NI Developer Zone Support Solutions Products & Services Contact NI MyNI

Lock Method

NI TestStand™ 4.1 Help
May 2008

NI Part Number:
370052G-01

»View NI TestStand Product Info

Syntax

PropertyObjectFile.Lock ( [passwordString])

Purpose

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.

Remarks

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.

Parameters

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.


See Also

Locked

ProtectedObjectOptions

Protection

Unlock


Resources


 

Your Feedback! poor Poor  |  Excellent excellent   Yes No
 Document Quality? 
 Answered Your Question? 
Add Comments 1 2 3 4 5 submit