GetFirstRegistrationDate

Top  Previous  Next

This function retrieves a date when the software has been registered in first time by the current license code.

 

Public Shared Function GetFirstRegistrationDate() As DateTime

 

Parameters

 

 No parameters.

 

Return value

 

 Returns Nothing if the software is not registered.

 Returns date and time of the software first registration with the current license code.

 

Requirements

 

 file: IntelliProtector.vb

 

Example

 

Public Sub ShowFirstRegistrationDate()

    Dim firstRegistrationDate As System.Nullable(Of DateTime) = IntelliProtectorService.IntelliProtector.GetFirstRegistrationDate()

    If firstRegistrationDate = DateTime.MinValue Then

        System.Windows.Forms.MessageBox.Show("Software is not registered")

    Else

        System.Windows.Forms.MessageBox.Show(firstRegistrationDate.Value.ToString())

    End If

End Sub

 





Copyright © 2011 intelliprotector.com