Visual Basic (Declaration) | |
---|---|
Public Overridable Sub Lock() |
Visual Basic (Usage) | Copy Code |
---|---|
|
C# | |
---|---|
public virtual void Lock() |
C++/CLI | |
---|---|
public: virtual void Lock(); |
Visual Basic | Copy Code |
---|---|
Private Sub AnnAutomation_Lock(ByVal automation As AnnAutomation) |
C# | Copy Code |
---|---|
private void AnnAutomation_Lock(AnnAutomation automation) |
Use the CanLock property to determine whether you can currently call this method.
This method opens the AnnAutomationManager.PasswordDialogType window and uses the value entered in this dialog as the password to AnnObjectBase.Lock.
If the AnnAutomationManager.PasswordDialogType value is null (Nothing in Visual Basic), this method will not do anything.
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