IgnoreComments Property

XmlReaderSettings.IgnoreComments Property

[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]

Gets or sets a value indicating whether to ignore comments.

Namespace:  System.Xml
Assembly:  System.Xml (in System.Xml.dll)

'Declaration
Public Property IgnoreComments As Boolean

Property Value

Type: System.Boolean
true to ignore comments; otherwise false. The default is false.

Setting this property to true can result in multiple contiguous text nodes being returned from the reader. This does not affect validation.

Windows Phone OS

Supported in: 8.1, 8.0, 7.1, 7.0

Windows Phone

Show:
© 2017 Microsoft