XmlWriterSettings.Reset 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
将设置类的成员重置为各自的默认值。
public:
void Reset();
public void Reset ();
member this.Reset : unit -> unit
Public Sub Reset ()
注解
下表显示了 实例 XmlWriterSettings的默认属性值。
| properties | 初始值 |
|---|---|
| Async |
false. |
| CheckCharacters |
true. |
| CloseOutput |
false. |
| ConformanceLevel | Document. |
| Encoding |
Encoding.UTF8. |
| Indent |
false. |
| IndentChars | 两个空格。 |
| NewLineChars |
\r\n. |
| NewLineHandling | Replace. |
| NewLineOnAttributes |
false. |
| OmitXmlDeclaration |
false. |
| WriteEndDocumentOnClose |
true. |