- password
- String containing the password used to lock the annotation object.
Visual Basic (Usage) | Copy Code |
---|---|
|
Parameters
- password
- String containing the password used to lock the annotation object.
This method changes the 'lock' state of an object.
Visual Basic | Copy Code |
---|---|
Public Sub AnnObject_Lock(ByVal obj As AnnObjectBase, ByVal password As String) |
C# | Copy Code |
---|---|
public void AnnObject_Lock(AnnObjectBase obj, string password) |
Only unlocked objects can be locked. If an object is already locked, it will stay locked with its original password. You must pass the same password to AnnObjectBase.Unlock to unlock this AnnObjectBase.
If this method succeeds, password will be stored inside the object and can be retreived with the Password property.
An object must be unlocked in order to change that object in automated mode.
For more information, refer to Implementing WPF Annotation Security.
Target Platforms: Microsoft .NET Framework 3.0, Windows XP, Windows Vista, and Windows Server 2003 family