System.JSON.Writers.TJsonWriter.WriteStartConstructor
Delphi
procedure WriteStartConstructor(const Name: string); virtual;
C++
virtual void __fastcall WriteStartConstructor(const System::UnicodeString Name);
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
procedure function |
public | System.JSON.Writers.pas System.JSON.Writers.hpp |
System.JSON.Writers | TJsonWriter |
Description
- Note: Standard JSON and BSON do not support JavaScript constructors.
Writes the start of a JavaScript constructor for an instance of the specified class.
Name
is the name of the class. For example, if Name
is MyClass, WriteStartConstructor writes new MyClass(
.
To define the parameters that you want to pass to the constructor, use any value function:
To close the constructor, call WriteEndConstructor.