This method updates the protection information and finishes the protection process.

[Visual Basic] Public Function Finish As Boolean
[C#] public bool Finish();

Return Value

Returns true if successfull, otherwise returns false.

Explanation

The Finish method updates the protection information and finishes the protection process.

The Initialize method must be executed before executing the Finish method. If the Initialize method has not been successfully executed, the Finish method is disabled.

How The Finish Method Updates Protection Information:
For example, you run an application that is protected with "Number of Uses" type protection and, when the application is closed, the Finish method is executed. In this case the "remaining number of uses" for that application is decreased by 1. Conversely, if the application is closed and the Finish method is not executed, the "remaining number of uses" for that application does not change. This is what is meant by "the Finish method updates the protection information".

 

Also See

PasswordProtect Members | Newtone.ProtectKit.Win.PasswordProtect