Gets the name of the associated DataSource object.
Assembly: Microsoft.Office.InfoPath (in Microsoft.Office.InfoPath.dll)
'Declaration Public MustOverride ReadOnly Property Name As String Get 'Usage Dim instance As DataSource Dim value As String value = instance.Name
If the data source is a secondary data source, the name of the DataSource object is the same as the name of the data source that it represents. For secondary data sources, the name of the DataSource object can also be used as the argument to the Item() property of the DataConnectionCollection class.
This member can be accessed only by forms running in the same domain as the currently open form, or by forms that have been granted cross-domain permissions.
This type or member can be accessed from code running in forms opened in Microsoft InfoPath Filler or in a Web browser.