Skip to content

Latest commit

 

History

History
23 lines (13 loc) · 775 Bytes

offlineperiodexceededaction.md

File metadata and controls

23 lines (13 loc) · 775 Bytes

OfflinePeriodExceededAction

Set or get the action to be performed when the MaxDaysOffline threshold is reached.

The possible values are:

DoNothing: No action is taken.

ExitApp: The application exits.

FireEvent: An event that you can subscribe to is fired. This is only supported in .NET Framework apps.

Event signature:

public void OfflinePeriodExceeded_EventHandler(object sender, OfflinePeriodExceeded_EventArgs e);

Arguments:

string errorMessage: an error message
int offlinePeriod: the number of days the client was offline
EServerErrorCode errorCode: the server error code

ThrowException: An exception is thrown. If you do not handle exceptions everywhere in your code, this will most likely crash your application.