System.Tether.Manager.TTetheringProfile.OnBeforeConnectProfile
Delphi
property OnBeforeConnectProfile: TTetheringBeforeConnectEvent read FOnBeforeConnectProfile write FOnBeforeConnectProfile;
C++
__property TTetheringBeforeConnectEvent OnBeforeConnectProfile = {read=FOnBeforeConnectProfile, write=FOnBeforeConnectProfile};
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
event | published | System.Tether.Manager.pas System.Tether.Manager.hpp |
System.Tether.Manager | TTetheringProfile |
Description
Occurs when a remote profile attempts to connect to your profile, and gives you the chance to decide whether or not to allow that connection.
The event handler of OnBeforeConnectProfile receives the following parameters:
Sender
is your profile.AProfileInfo
provides information about the remote profile.AllowConnect
is a boolean variable that you can modify to indicate whether you wish to allow the connection (True
) or deny it (False
).