DataSources.AddItem

Adds a new DataSource to the collection and returns a reference to the new DataSource.

public DataSource AddItem(string Type,
	string ItemName);

Return Value

A reference to the newly created DataSource.

Parameters

Type
The type of DataSource object to create, one of:

  • VFP: a Visual FoxPro data source.
  • ODBC: an ODBC data source.
  • ADO: an ADO/OLE DB data source.
  • WebService: a data source accessed via a Web service.
  • SQLXML: a SQL Server data source accessed via HTTP. See the SQL Server Books Online or the MSDN Web site (http://msdn.microsoft.com) for information on SQLXML.
  • Text: comma-delimited text files. The name of the file must be in the Custom Properties property of each table in the data dictionary and the path must be in the Database property of the DataSource object.

ItemName
The name to assign to the new DataSource.

Overloads:


See also:

Class DataSources