Share via


RemoteDesktopClient.OnAutoReconnecting event

[OnAutoReconnecting is no longer available for use as of Windows 10 and Windows Server 2016 Technical Preview.]

Called when the client control attempts to automatically reestablish a connection to a remote session.

Syntax

function handler(disconnectReason, extendedDisconnectReason, disconnectErrorMessage, networkAvailable, attemptCount, maxAttemptCount) { /* Your code */ }
 
// attachEvent syntax
remoteDesktopClient.attachEvent("onautoreconnecting", handler);
remoteDesktopClient.detachEvent("onautoreconnecting", handler);

Event handler parameters

  • disconnectReason [in]
    Type: Number

    Indicates the reason for the disconnect event.

  • extendedDisconnectReason [in]
    Type: Number

    Specifies extended information for the disconnect event. For a list of possible values, see the ExtendedDisconnectReason property.

  • disconnectErrorMessage [in]
    Type: String

    The error message text.

  • networkAvailable [in]
    Type: Boolean

    Indicates whether the network is available.

  • attemptCount [in]
    Type: Number

    Specifies which attempt this is.

  • maxAttemptCount [in]
    Type: Number

    Specifies which maximum number of reconnect attempts will be performed.

Requirements

Minimum supported client

Windows 8 [Windows Store apps only]

Minimum supported server

Windows Server 2012 [Windows Store apps only]

End of client support

Windows 8.1

End of server support

Windows Server 2012 R2

See also

RemoteDesktopClient