Skip to content

API Host TypedDocumentOutput

Liu.Yandong.Hanks edited this page Sep 2, 2026 · 3 revisions

TypedDocumentOutput

INativeTypedDocument.WriteTypedDocument 使用的 TDoc 写出器。

命名空间:AuroraScript.Runtime.Serialization。种类:ref struct。适用于 4.0.0。

返回 .NET Host API 参考 · INativeTypedDocument

概述

第一次 WriteMember 或 WriteElement 锁定本次写出的对象或数组形态。不要保存本结构。数值和布尔 ScriptDatum 不分配。

方法

void WriteMember(string name, double value, bool readOnly = false)
void WriteMember(string name, bool value, bool readOnly = false)
void WriteMember(string name, string value, bool readOnly = false)
void WriteMember(string name, ScriptDatum value, bool readOnly = false)
void WriteElement(double value)
void WriteElement(bool value)
void WriteElement(string value)
void WriteElement(ScriptDatum value)

WriteMember 写出命名对象成员;WriteElement 写出位置数组元素。混用会抛出 TypedDocumentException。

相关 API

AuroraScript.JIT 4.0.0

入门

语言

脚本 API

宿主集成

工具

项目

Clone this wiki locally