System.JSON.Writers.TJsonObjectWriter.WriteStartConstructor
Delphi
procedure WriteStartConstructor(const Name: string); override;
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 | TJsonObjectWriter |
Description
Writes the start of a JavaScript constructor for an instance of the specified class.
System.JSON.Writers.TJsonObjectWriter.WriteStartConstructor inherits from System.JSON.Writers.TJsonWriter.WriteStartConstructor. All content below this line refers to System.JSON.Writers.TJsonWriter.WriteStartConstructor.
- 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.