IXmlSerializable.GetSchema Method

XElement.IXmlSerializable.GetSchema Method ()

 

Gets an XML schema definition that describes the XML representation of this object.

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

private abstract GetSchema : unit -> XmlSchema
private override GetSchema : unit -> XmlSchema

Return Value

Type: System.Xml.Schema.XmlSchema

An XmlSchema that describes the XML representation of the object that is produced by the WriteXml method and consumed by the ReadXml method.

This method is part of implementation of the IXmlSerializable interface.

This method is used internally for serializing object graphs that contain LINQ to XML objects. For an example of serializing an object graph that contains LINQ to XML objects, see Serializing Object Graphs that Contain XElement Objects.

Universal Windows Platform
Available since 10
.NET Framework
Available since 3.5
Silverlight
Available since 2.0
Windows Phone Silverlight
Available since 7.0
Return to top
Show:
© 2016 Microsoft