XamlObjectWriter.WriteEndObject 方法

定义

关闭编写器中的当前对象范围。Closes the current object scope in the writer. 新对象范围将成为的父成员范围。The new object scope becomes the parent member scope.

public:
 override void WriteEndObject();
public override void WriteEndObject ();
override this.WriteEndObject : unit -> unit
Public Overrides Sub WriteEndObject ()

注解

如果此 EndObject 位置范围正在关闭根对象,则新的对象范围将成为根作用域。If this EndObject position scope is closing the root object, the new object scope becomes the root scope.

WriteStartObject 的调用可能尚未创建对象,因为对象成员可能是必需的初始化路径,例如初始化文本或初始化参数。The call to WriteStartObject might not yet have created the object because an object member might be a necessary initialization pathway, such as initialization text or initialization parameters. 对于这些情况,对 WriteEndObject 的调用实际上会写入该对象。For these cases, the call to WriteEndObject actually writes the object.

适用于