
Use the ICIClientSettings interface GetExpirationDate method to determine whether an expiration date is set for a particular user account. (Set the expiration date with SetExpirationDate.) Refer to User Account General Settings for an illustration of how this and other Client Settings Interface Methods and Properties can be accessed in the Administrator interface.
Signature:
HRESULT GetExpirationDate([out]VARIANT *dDate, [out, retval] VARIANT_BOOL *pVal);
Example:
sUser = "q"
sExpirationDate = "Never"
If Site.GetUserSettings(sUser).GetExpirationDate(expirationDate) Then
sExpirationDate = CStr(expirationDate)
End If
MsgBox "Account " & sUser & " expiration date: " & sExpirationDate
The method returns True/False (whether expiration date is set) and, if True, sets (i.e., modifies) its first parameter to the expiration date.