ExpireDate Property

Description

Expiration date for PASSPORT Host Integration Objects.
 

Applies To Objects

Sessions
 

Syntax

Sessions.ExpireDate
 

Return Values

Returns a string representing the date when the software will expire in the following format:

mm-dd-yyyy

Where mm is the month when the software will expire, dd is the day of the month the software will expire and yyyy is the year when the software will expire. If the expiration date has already passed, the string "Expired" is returned.

Read only.

 

Sample VB Code

Dim AllSessions As OhioSessions

Set AllSessions = New OhioSessions

MsgBox "ExpireDate = " & AllSessions.ExpireDate

Sample C++ Code

IOhioSessions AllSessions;

if ( AllSessions.CreateDispatch(CLSID_OhioSessions) )

{

      TRACE( "SessionLimit = %d\n", AllSessions.GetSessionLimit() );

      TRACE( "Version = %s\n", AllSessions.GetVersion() );

      TRACE( "ExpireDate = %s\n", AllSessions.GetExpireDate() );

}

Sample C# Code

try

{

PASSHIOLib.OhioSessions AllSessions;

AllSessions = new PASSHIOLib.OhioSessionsClass ();

MessageBox.Show ("SessionLimit = " + AllSessions.SessionLimit );

MessageBox.Show ("Version = " + AllSessions.Version );

MessageBox.Show ("ExpireDate = " + AllSessions.ExpireDate );

}

catch (Exception ex)

{

MessageBox.Show ("Exception: " + ex);

}