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





Reads a data source with the specified name.

Namespace: MindFusion.Reporting
Assembly: MindFusion.Reporting

 Syntax

C#  Copy Code

public Object ReadDataSource (
    string elementName,
    XmlElement parentElement
)

Visual Basic  Copy Code

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

 Parameters

elementName

The name of the element containing the data source.

parentElement

The parent element of the node with the specified name.

 Return Value

The read data source. Returns null (Nothing in Visual Basic) if there is no element with the specified name under the specified parent or if the object cannot be deserialized.

 Remarks

This method raises the DeserializeDataSource event to allow clients to specify the data source based on the string value of the specified XML element.

 See Also

XmlSerializationContext Members
XmlSerializationContext Class
MindFusion.Reporting Namespace
WriteDataSource Method
DeserializeDataSource Event