DataSourceObject Interface

Represents a secondary data source.

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

Syntax

'Declaration
<GuidAttribute("096cd5a1-0786-11d1-95fa-0080c78ee3bb")> _
Public Interface DataSourceObject _
    Inherits DataObject
'Usage
Dim instance As DataSourceObject
[GuidAttribute("096cd5a1-0786-11d1-95fa-0080c78ee3bb")]
public interface DataSourceObject : DataObject

Remarks

This type is a wrapper for a coclass that is required by managed code for COM interoperability. Use this type to access the members of the COM interface implemented by this coclass. For information about the COM interface, including a link to descriptions of its members, seeDataObject.

The DataObject object corresponds to stored data, obtained from some external source of data, using an associated data adapter. It provides properties and methods that can be used to programmatically interact the stored data, as well as providing access to the associated data adapter object. The DataObject object is accessible through the DataObjects property of the XDocument object.

The DataObject object acts as an intermediary between a Microsoft InfoPath 2010 form and the data adapter object that is used to obtain data from an external connection, such as a connection to a Microsoft Access or Microsoft SQL Server database, an .xml file, or an XML Web service. The type of data adapter object used depends on the type of external data connection. The DataObject object provides a common set of properties and a method that can be used for all types of data adapter objects, and each of the data adapter objects provides its own set of properties and methods.

Microsoft InfoPath 2010 supports four types of data adapters:

See Also

Reference

DataSourceObject Members

Microsoft.Office.Interop.InfoPath.SemiTrust Namespace