This property determines which day is used as the starting day for protection.

[Visual Basic] Public ReadOnly Property MonthsType As Integer
[C#] public int MonthsType {get;}

Property Value

Read Only

Value Explanation
0 Protection starts from the actual date when the application is first executed.
1 Protection starts from the beginning of the month in which the application was first executed.
2 Protection starts from the beginning of the month following the month in which the application was first executed.

Explanation

The MonthsType property determines which day is used as the starting day for protection.

For example, if the application is first executed on 2010/03/16 then the following will be the start day for protection:

0: 2010/03/16 is the start day for protection
1: 2010/03/01 is the start day for protection
2: 2010/04/01 is the start day for protection

The MonthsType property value is set after the OueryProtectInformation method has been successfully executed.

 

Also See

PasswordProtect Members | Newtone.ProtectKit.Win.PasswordProtect