次の方法で共有


DataSourceCollection Class

Contains a collection of DataSource objects that represent the data sources used within a form.

Inheritance Hierarchy

System.Object
  Microsoft.Office.InfoPath.DataSourceCollection

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

Syntax

'Declaration
Public MustInherit Class DataSourceCollection _
    Implements IEnumerable
'Usage
Dim instance As DataSourceCollection
public abstract class DataSourceCollection : IEnumerable

Remarks

Each DataSource object in the DataSourceCollection corresponds to data obtained from some external source of data using an associated data connection. The data connection represents the connection to a database or Web service and the data source represents the storage of the returned XML data. The QueryConnection property of the DataSource class provides access to a DataConnection object that represents the particular data connection that was used to connect to the data source.

The DataSourceCollection class implements properties that can be used to access a form's associated DataSource objects, and is accessible through the DataSources property of the XmlForm class.

Note

The DataSourceCollection class can only be used to get the count of DataSource objects that it contains or to return a reference to a DataSource object in the collection. It cannot be used to create, add, or remove DataSource objects.

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

Reference

DataSourceCollection Members

Microsoft.Office.InfoPath Namespace