XmlWriterSettings.Reset 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
将设置类的成员重置为其默认值。
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。 |