Share via


RenderToStringResult.Globals 属性

定义

如果已设置,则指定应作为文档中的一组全局 JavaScript 变量添加的 JSON 可序列化数据。 这可用于将任意数据从服务器端预呈现代码传输到客户端代码, (例如,将 Redux 存储的状态) 传输。

public:
 property Newtonsoft::Json::Linq::JObject ^ Globals { Newtonsoft::Json::Linq::JObject ^ get(); void set(Newtonsoft::Json::Linq::JObject ^ value); };
public Newtonsoft.Json.Linq.JObject Globals { get; set; }
member this.Globals : Newtonsoft.Json.Linq.JObject with get, set
Public Property Globals As JObject

属性值

Newtonsoft.Json.Linq.JObject

适用于