Skip to content

DisconnectedEventArgs ​

Provides data for the RdpControl.OnDisconnected event.

Type ​

csharp
RoyalApps.Community.Rdp.WinForms.Controls.Events.DisconnectedEventArgs

Used By ​

Properties ​

ConnectionAttemptId (Guid) ​

Gets the identifier assigned to this connection attempt for log correlation.

Description (required string) ​

Gets the description associated with DisconnectedEventArgs.DisconnectCode.

DisconnectCode (required int) ​

Gets the disconnect code reported by the ActiveX control or external session wrapper.

ExtendedDisconnectReasonCode (int?) ​

Gets the extended disconnect reason reported by the ActiveX control, when available.

ExternalProcessId (int?) ​

Gets the external client process ID when DisconnectedEventArgs.SessionMode is RdpSessionMode.External.

MsRdpExSessionId (Guid?) ​

Gets the MsRdpEx session identifier when the connection uses the MsRdpEx hook.

SessionMode (RdpSessionMode) ​

Indicates how the session was hosted.

ShowError (required bool) ​

Gets a value indicating whether the disconnect should be treated as an error.

UserInitiated (required bool) ​

Gets a value indicating whether the session ended because of user interaction.

Back to API index

MIT Licensed