System.JSON.BSON.TBsonWriter.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.BSON.pas System.JSON.BSON.hpp |
System.JSON.BSON | TBsonWriter |
Description
- Note: Standard BSON does 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:
- WriteValue
- WriteCode
- WriteMaxKey
- WriteMinKey
- WriteNull
- WriteUndefined
- WriteStartArray
- WriteStartObject
To close the constructor, call WriteEndConstructor.