System.Tether.Manager.TTetheringProtocols.GetProtocolInstance

Aus RAD Studio API Documentation
Wechseln zu: Navigation, Suche

Delphi

class function GetProtocolInstance(const AProfile: TTetheringProfile; const AProtocolType: TTetheringProtocolType;  const AnAdapter: TTetheringAdapter; AsClient: Boolean): TTetheringProtocol;

C++

__classmethod TTetheringProtocol* __fastcall GetProtocolInstance(TTetheringProfile* const AProfile, const System::UnicodeString AProtocolType, TTetheringAdapter* const AnAdapter, bool AsClient);

Eigenschaften

Typ Sichtbarkeit Quelle Unit Übergeordnet
function public
System.Tether.Manager.pas
System.Tether.Manager.hpp
System.Tether.Manager TTetheringProtocols


Beschreibung

Erstellt eine Instanz eines Protokolls des angegebenen Typs und gibt sie zurück.

Wenn kein Protokoll mit AProtocolType registriert ist, gibt GetProtocolInstance null zurück.

AsClient legt fest, ob die erstellte Instanz nur als Client (True) oder sowohl als Client als auch als Server (False) arbeiten muss.

Exceptions

Informationen über Exceptions, die ausgelöst werden könnten, wenn Sie GetProtocolInstance aufrufen, um eine Instanz von TTetheringTCPProtocol zu ermitteln, finden Sie unter TTetheringTCPProtocol.StartCommunication, wenn Started den Wert True hat.

Siehe auch