XElement.IXmlSerializable.GetSchema 方法

定义

获取说明此对象的 XML 表示形式的 XML 构架定义。Gets an XML schema definition that describes the XML representation of this object.

 virtual System::Xml::Schema::XmlSchema ^ System.Xml.Serialization.IXmlSerializable.GetSchema() = System::Xml::Serialization::IXmlSerializable::GetSchema;
System.Xml.Schema.XmlSchema IXmlSerializable.GetSchema ();
abstract member System.Xml.Serialization.IXmlSerializable.GetSchema : unit -> System.Xml.Schema.XmlSchema
override this.System.Xml.Serialization.IXmlSerializable.GetSchema : unit -> System.Xml.Schema.XmlSchema
Function GetSchema () As XmlSchema Implements IXmlSerializable.GetSchema

返回

一个 XmlSchema,描述由 WriteXml(XmlWriter) 方法生成并由 ReadXml(XmlReader) 方法使用的对象的 XML 表示形式。An XmlSchema that describes the XML representation of the object that is produced by the WriteXml(XmlWriter) method and consumed by the ReadXml(XmlReader) method.

实现

注解

此方法是实现 IXmlSerializable 接口的一部分。This method is part of implementation of the IXmlSerializable interface.

此方法在内部使用,用于序列化包含 LINQ to XML 对象的对象图。This method is used internally for serializing object graphs that contain LINQ to XML objects. 有关序列化包含 LINQ to XML 对象的对象图的示例,请参阅序列化包含 System.xml.linq.xelement> 对象的对象图For an example of serializing an object graph that contains LINQ to XML objects, see Serializing Object Graphs that Contain XElement Objects.

适用于