[]
        
(Showing Draft Content)

FarPoint.Win.Serializer.SerializePresentation

SerializePresentation Method

SerializePresentation(object, string, XmlTextWriter, Hashtable, object)

Serializes an object using the ISerializePresentation2 interface.

Declaration
public static bool SerializePresentation(object o, string elementName, XmlTextWriter w, Hashtable restrictedNamedStyles, object nameStyles)
Public Shared Function SerializePresentation(o As Object, elementName As String, w As XmlTextWriter, restrictedNamedStyles As Hashtable, nameStyles As Object) As Boolean
Parameters
Type Name Description
object o

Object to serialize

string elementName

Name of XML element

XmlTextWriter w

XmlTextWriter object to which to save

Hashtable restrictedNamedStyles

Hashtable object to which to save

object nameStyles

object to which to save

Returns
Type Description
bool

true if successful; false otherwise

SerializePresentation(object, string, XmlTextWriter)

Serializes an object using the ISerializePresentation interface.

Declaration
public static bool SerializePresentation(object o, string elementName, XmlTextWriter w)
Public Shared Function SerializePresentation(o As Object, elementName As String, w As XmlTextWriter) As Boolean
Parameters
Type Name Description
object o

Object to serialize

string elementName

Name of XML element

XmlTextWriter w

XmlTextWriter object to which to save

Returns
Type Description
bool

true if successful; false otherwise