语言

XmlWriterSettings.Reset 方法

定义

将设置类的成员重置为其默认值。

public:
 void Reset();
public void Reset();
member this.Reset : unit -> unit
Public Sub Reset ()

注解

下表显示了实例 XmlWriterSettings的默认属性值。

财产 初始值
Async false。
CheckCharacters true。
CloseOutput false。
ConformanceLevel Document。
Encoding Encoding.UTF8。
Indent false。
IndentChars 两个空格。
NewLineChars \r\n (回车符、非 Unix 平台的换行符)或 \n Unix 平台的(换行符)。
NewLineHandling Replace。
NewLineOnAttributes false。
OmitXmlDeclaration false。
WriteEndDocumentOnClose true。

适用于