Convert an object to an xml document

C# | Visual Basic | Visual C++ |
public static XmlDocument XmlSerialize<T>( T o, Type[] knownTypes )
Public Shared Function XmlSerialize(Of T) ( _ o As T, _ knownTypes As Type() _ ) As XmlDocument
public: generic<typename T> static XmlDocument^ XmlSerialize( T o, array<Type^>^ knownTypes )

- T
- The type of the object to be converted

- o (T)
- The object to be serialized
- knownTypes (array< Type >[]()[])
- Other types that it must known ahead to serialize the object

An xml document that represents the object