DataObjectsCollection Interface
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Contains a DataSourceObject object for each secondary data source used within a Microsoft InfoPath form.
public interface class DataObjectsCollection : Microsoft::Office::Interop::InfoPath::SemiTrust::DataObjects
[System.Runtime.InteropServices.Guid("096cd5a4-0786-11d1-95fa-0080c78ee3bb")]
public interface DataObjectsCollection : Microsoft.Office.Interop.InfoPath.SemiTrust.DataObjects
type DataObjectsCollection = interface
interface DataObjects
Public Interface DataObjectsCollection
Implements DataObjects
- Attributes
- Implements
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, seeDataObjects.
Each DataSourceObject (DataObject) object corresponds to stored data, obtained from some external source of data, using an associated data adapter. The data adapter represents the connection, to a database or web service, for example, and the data source represents the storage of the returned XML data. The QueryAdapter property.of the DataSourceObject provides access to the particular DataSourceObject object that was used to connect to the external data source.
The DataObjects collection implements properties that can be used to access a form's associated DataSourceObject objects, and it is accessible through the DataObjects property of the XDocument object.
Note: The DataObjects collection can be used only to get the count of DataSourceObject objects that it contains or to return a reference to a specified DataSourceObject object. It cannot be used to create, add, or remove DataSourceObject objects.
Properties
Count |
Gets a count of the number of DataSourceObject objects contained in the DataObjectsCollection collection. (Inherited from DataObjects) |
Item[Object] |
Gets a reference to the specified DataSourceObject object from the DataObjectsCollection collection. (Inherited from DataObjects) |
Methods
GetEnumerator() |
Gets an IEnumerator that iterates over all entries in the DataObjectsCollection object. (Inherited from DataObjects) |