XamlXmlWriterSettings.CloseOutput 属性
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
获取或设置一个值,该值指定应 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。
注解
此设置会影响对基础XmlWriter或TextWriter何时CloseOutputtrue调用Close的XamlXmlWriter.Dispose逻辑;或者调用Flush(再次绑定到基础XmlWriter或TextWriter)(如果CloseOutput为false)。