Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

XmlSerializableServices Class

Contains methods for reading and writing XML.

Namespace: System.Runtime.Serialization
Assembly: System.Runtime.Serialization (in system.runtime.serialization.dll)

public static class XmlSerializableServices
public final class XmlSerializableServices
public final class XmlSerializableServices
Not applicable.

Using Windows Communication Foundation (WCF), you can generate CLR types representing data contracts from XML schemas. In certain cases when doing so, the schemas may not all be represented as data contracts. In this case, you can use the ImportXmlType property of the ImportOptions class. Setting the property to true specifies that these types are imported as XML types that implement the IXmlSerializable interface. In the process, the generated types can store anything, but they are read and written as XML by the serializer.

The XmlSerializableServices is an abstract helper class that contains code that is used by the generated IXmlSerializable types to read and write XML. It also contains code for generating schema for the generated types. Note that details about the schemas are not stored. Only the name is stored in the generated type. This class generates a default schema that represents the XML schema type anyType with the appropriate schema type name as the contract name.

System.Object
  System.Runtime.Serialization.XmlSerializableServices

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Windows 98, Windows Server 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

Show:
© 2015 Microsoft