NewLineHandling 枚举


指定如何处理分行符。Specifies how to handle line breaks.

public enum class NewLineHandling
public enum NewLineHandling
type NewLineHandling = 
Public Enum NewLineHandling


Entitize 1

新行字符已实体化。New line characters are entitized. 当通过某个正常化 XmlReader 来读取输出时,此设置将保留所有字符。This setting preserves all characters when the output is read by a normalizing XmlReader.

None 2

新行字符未更改。The new line characters are unchanged. 输出与输入一样。The output is the same as the input.

Replace 0

替换新行字符才能与 NewLineChars 属性中指定的字符匹配。New line characters are replaced to match the character specified in the NewLineChars property.


此枚举将传递Create给方法, 以指定XmlWriter对象是否将在输出中规范化分行符。This enumeration is passed to the Create method to specify whether the XmlWriter object will normalize line breaks in the output.

若要查看详细说明每个验证类型的行为的表, 请参见属性。NewLineHandlingSee the NewLineHandling property to see a table detailing the behavior of each of the validation types.