Datasnap.DSSession.TDSTunnelService.DefaultErrorOpenSessionEvent
Delphi
procedure DefaultErrorOpenSessionEvent(Sender: TObject; Session: TDSTunnelSession; Content: TArray<Byte>; var Count: Integer);
C++
void __fastcall DefaultErrorOpenSessionEvent(System::TObject* Sender, TDSTunnelSession* Session, System::DynamicArray<System::Byte> Content, int &Count);
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
procedure function |
protected | Datasnap.DSSession.pas Datasnap.DSSession.hpp |
Datasnap.DSSession | TDSTunnelService |
Description
Represents the default implementation of the event triggered when a session cannot be opened.
The DefaultErrorOpenSessionEvent method represents the event triggered each time a session cannot be opened. The default implementation delegates to the OnErrorOpenSession property, if set. Otherwise, it throws the exception again.
The following table lists the arguments of the DefaultErrorOpenSessionEvent method.
Argument | Meaning |
---|---|
Sender |
Represents the event sender. |
Session |
Represents the tunnel session instance that manages the current communication. |
Content |
Specifies the byte content. |
Count |
Specifies the size of the byte content, in bytes. |