Share via


XmlFormHostItem.MainDataSource property

This member is a wrapper for the MainDataSource property of the XmlForm class.

Namespace:  Microsoft.Office.InfoPath
Assembly:  Microsoft.Office.InfoPath (in Microsoft.Office.InfoPath.dll)

Syntax

'Declaration
Public Overridable ReadOnly Property MainDataSource As DataSource
    Get
'Usage
Dim instance As XmlFormHostItem
Dim value As DataSource

value = instance.MainDataSource
public virtual DataSource MainDataSource { get; }

Property value

Type: Microsoft.Office.InfoPath.DataSource
Returns DataSource.

See also

Reference

XmlFormHostItem class

XmlFormHostItem members

Microsoft.Office.InfoPath namespace