System.Tether.Manager.TTetheringManager.OnError
Delphi
property OnError: TTetheringNotifyErrorEvent read FOnError write FOnError;
C++
__property TTetheringNotifyErrorEvent OnError = {read=FOnError, write=FOnError};
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
event | published | System.Tether.Manager.pas System.Tether.Manager.hpp |
System.Tether.Manager | TTetheringManager |
Description
The event handler for tethering errors.
This event handlers accept the following parameters:
Sender
: The TTetheringManager instance that raises the error.Data
: A TTetheringAdapter instance.AError
: The error type.
The OnError event handler is of type TTetheringNotifyErrorEvent
The following methods may raise this error:
- The setter for the TTetheringProfile.Manager property: The error occurs for each TTetheringAdapter of the corresponding manager that is not listening (StartListening returns
False
). - The RegisterProfile method : The error occurs during the automatic registration of available adapters for each adapter that is not listening (StartListening returns
False
). - The setter for the AllowedAdapters property: The error occurs during the automatic registration of available adapters for each adapter that is not listening (StartListening returns
False
).
In all of the above cases, the AError
parameter is TTetheringError.InitAdapterError
.