MindFusion WinForms Programmer's Guide
XmlSerializationContext.WriteDataSource Method
See Also
 





Writes the specified data source.

Namespace: MindFusion.Reporting
Assembly: MindFusion.Reporting

 Syntax

C#  Copy Code

public XmlElement WriteDataSource (
    Object dataSource,
    string elementName,
    XmlElement parentElement
)

Visual Basic  Copy Code

Public Function WriteDataSource( _
    dataSource As Object, _
    elementName As String, _
    parentElement As XmlElement _
) As XmlElement

 Parameters

dataSource

The data source to write.

elementName

The name of the element under which the data source be written.

parentElement

The parent element of the newly created node.

 Return Value

An instance of the .NET XmlElement class representing the newly created XML element.

 Remarks

This method raises the SerializeDataSource event to allow clients to specify the name under which the data source should be written.

 See Also

XmlSerializationContext Members
XmlSerializationContext Class
MindFusion.Reporting Namespace
ReadDataSource Method
SerializeDataSource Event