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。 |