System.Tether.Manager.TTetheringCommand.Create

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

constructor Create(const ACommand: string; AVersion: Integer; const AParameters: array of string; const AData: TObject = nil); overload;
constructor Create(const ACommand: string; AVersion: Integer; const AParameters: TArray<string>; const AData: TObject = nil); overload;
constructor Create(AType: TTetheringCommandType; const ACommand: string; AVersion: Integer;  const AParameters: TArray<string> = nil; const AData: TObject = nil); overload;
constructor Create(AType: TTetheringCommandType; const ACommand: string; AVersion: Integer;  const AParameters: array of string; const AData: TObject = nil); overload;
constructor Create(const ACommand: string; AVersion: Integer); overload;
constructor Create(const RawData: TBytes); overload;

C++

__fastcall TTetheringCommand(const System::UnicodeString ACommand, int AVersion, System::UnicodeString const *AParameters, const int AParameters_High, System::TObject* const AData)/* overload */;
__fastcall TTetheringCommand(const System::UnicodeString ACommand, int AVersion, const System::DynamicArray<System::UnicodeString> AParameters, System::TObject* const AData)/* overload */;
__fastcall TTetheringCommand(TTetheringCommandType AType, const System::UnicodeString ACommand, int AVersion, const System::DynamicArray<System::UnicodeString> AParameters, System::TObject* const AData)/* overload */;
__fastcall TTetheringCommand(TTetheringCommandType AType, const System::UnicodeString ACommand, int AVersion, System::UnicodeString const *AParameters, const int AParameters_High, System::TObject* const AData)/* overload */;
__fastcall TTetheringCommand(const System::UnicodeString ACommand, int AVersion)/* overload */;
__fastcall TTetheringCommand(const System::DynamicArray<System::Byte> RawData)/* overload */;
TTetheringCommand() {}

Properties

Type Visibility Source Unit Parent
constructor public
System.Tether.Manager.pas
System.Tether.Manager.hpp
System.Tether.Manager TTetheringCommand

Description

Creates an instance of TTetheringCommand.

Most of the parameters that the different signatures of Create support simply initialize matching properties on your new instance of TTetheringCommand. The following table shows how parameters map to properties of TTetheringCommand:

Parameter Property

ACommand

Command

AParameters

Parameters

AType

CommandType

AData

Data

AVersion is the version of the command protocol.

When you use the Create signature that receives the RawData parameter, Create parses the raw data and fills the new instance of TTetheringCommand with its data. See ToString for the expected format of RawData.

See Also