Freigeben über


XElement.IXmlSerializable.GetSchema Method

Microsoft Silverlight will reach end of support after October 2021. Learn more.

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)

Syntax

'Declaration
Private Function GetSchema As XmlSchema
    Implements IXmlSerializable.GetSchema
XmlSchema IXmlSerializable.GetSchema()

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.

Implements

IXmlSerializable.GetSchema()

Remarks

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.

Version Information

Silverlight

Supported in: 5, 4, 3

Silverlight for Windows Phone

Supported in: Windows Phone OS 7.1, Windows Phone OS 7.0

XNA Framework

Supported in: Xbox 360, Windows Phone OS 7.0

Platforms

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.