XmlTypeAttribute::IncludeInSchema Property
.NET Framework (current version)
Gets or sets a value that indicates whether to include the type in XML schema documents.
Assembly: System.Xml (in System.Xml.dll)
Property Value
Type: System::Booleantrue to include the type in XML schema documents; otherwise, false.
Apply the XmlTypeAttribute to a class to specify the XML type's namespace, the XML type name, and whether to include the type in the XML schema document. To see the results of setting the properties of the XmlTypeAttribute class, compile your application as an executable or DLL, and pass the resulting file to the XML Schema Definition tool (XSD.exe). The tool writes the schema, including the type definition.
The following example applies the XmlTypeAttribute to the ExtraneousInfo class, setting the IncludeInSchema property to false.
Universal Windows Platform
Available since 8
.NET Framework
Available since 1.1
Portable Class Library
Supported in: portable .NET platforms
Silverlight
Available since 2.0
Windows Phone Silverlight
Available since 7.0
Windows Phone
Available since 8.1
Available since 8
.NET Framework
Available since 1.1
Portable Class Library
Supported in: portable .NET platforms
Silverlight
Available since 2.0
Windows Phone Silverlight
Available since 7.0
Windows Phone
Available since 8.1
Show: