Leadtools.Annotations Requires Document/Medical product license | Send comments on this topic. | Back to Introduction - All Topics | Help Version 15.10.31
Unlock Method
See Also 
Leadtools.Annotations Namespace > AnnObject Class : Unlock Method




password
String containing the password used to unlock the annotation object.
Unlocks this AnnObject with the specified password.

Syntax

Visual Basic (Declaration) 
Public Overridable Sub Unlock( _
   ByVal password As String _
) 
Visual Basic (Usage)Copy Code
Dim instance As AnnObject
Dim password As String
 
instance.Unlock(password)
C# 
public virtual void Unlock( 
   string password
)
Managed Extensions for C++ 
public: virtual void Unlock( 
   string* password
) 
C++/CLI 
public:
virtual void Unlock( 
   String^ password
) 

Parameters

password
String containing the password used to unlock the annotation object.

Example

For an example, refer to Lock.

Remarks

Only objects locked with the same password can be unlocked. If you pass the wrong password, this method will do nothing and the object remains unlocked. You can call IsLocked after calling this method to determine whether unlocking the object succeeded.

If this method succeeds, the Password value will be reset to an empty string.

An object must be unlocked in order to change that object in automated mode.

For more information, refer to Implementing Annotation Security.

Requirements

Target Platforms: Microsoft .NET Framework 2.0, Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

See Also

Leadtools.Annotations requires a Document or Medical toolkit license and unlock key. For more information, refer to: Raster Pro/Document/Medical Features