|
GetTrialUnitsLeftCount |
Top Previous Next |
|
This function returns how many time units remain till registration. During this period the software is still in the trial mode.
Public Shared Function GetTrialUnitsLeftCount(ByVal dimension As Integer) As Integer
Parameters
int dimensions - type of the timeframe, where: 0 - minutes 1 - hours 2 - weeks 3 - days 4 - months
You can use the predefined enum from the IntelliProtectorService.IntelliProtector class: enUnitDimension Public Enum enUnitDimension eudMinutes eudHours eudDays eudWeeks eudMonths End Enum
Return value
Returns the number of trial units left.
Requirements
file: IntelliProtector.vb
Example
Public Sub ShowTrialDaysLeft() Dim trialDaysLeftQty As Integer = IntelliProtectorService.IntelliProtector.GetTrialUnitsLeftCount(IntelliProtectorService.IntelliProtector.enUnitDimension.eudDays) Dim daysLeftMessage As [String] = [String].Format("Trial will expire in {0} days", trialDaysLeftQty) System.Windows.Forms.MessageBox.Show(daysLeftMessage) End Sub
|
| Copyright © 2011 intelliprotector.com |