XmlIgnoreAttribute Constructor ()
Initializes a new instance of the XmlIgnoreAttribute class.
Assembly: System.Xml (in System.Xml.dll)
The following example shows a class named Group, which contains a field named Comment. The example assigns the XmlIgnoreAttribute to the field, thereby instructing the XmlSerializer to ignore the field when serializing or deserializing an instance of the class.
Available since 4.5
Available since 1.1
Portable Class Library
Supported in: portable .NET platforms
Available since 2.0
Windows Phone Silverlight
Available since 7.0
Available since 8.1