XamlXmlWriterSettings.CloseOutput 属性

定义

获取或设置一个值,该值指定应 XamlXmlWriter 立即 Dispose 关闭或其他操作,或者 XAML 编写器是否应在关闭前写入缓冲区输出。 请谨慎使用此设置;立即关闭可能会导致无法再次加载的无效 XAML。

public:
 property bool CloseOutput { bool get(); void set(bool value); };
public bool CloseOutput { get; set; }
member this.CloseOutput : bool with get, set
Public Property CloseOutput As Boolean

属性值

true 如果 XamlXmlWriter 立即关闭 Dispose 或类似的操作, false 如果在释放之前 XamlXmlWriter 写入剩余的缓冲区输出。 默认值为 false

注解

此设置会影响对基础XmlWriterTextWriter何时CloseOutputtrue调用CloseXamlXmlWriter.Dispose逻辑;或者调用Flush(再次绑定到基础XmlWriterTextWriter)(如果CloseOutputfalse)。

适用于