This property retrieves the way that protection is applied.

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

Property Value

Read Only

Value Explanation
0 Standard protection: If a password is not entered the application cannot be used at all.
1 Number of uses protection: The application can be used for the specified number of times. After that, the application cannot be used.
2 Number of days protection: The application can be used for the specified number of days. After that, the application cannot be used.
3 Number of months protection: The application can be used for the specified number of months. After that, the application cannot be used.
4 Date protection: The application can be used until the specified date. After that, the application cannot be used.

Explanation

The ProtectWay property retrieves the way that protection is applied. If the ProtectWay property values are set from 1 through 3, if the PasswordExpiration property is true, a password must first be entered before the application can be used, after that, it will stop working according to which value is set in the ProtectWay property.

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

 

Also See

PasswordProtect Members | Newtone.ProtectKit.Win.PasswordProtect