The DataSource type exposes the following members.

Constructors

  Name Description
Public method DataSource
Initializes a new instance of the DataSource class.

Methods

  Name Description
Public method AssignFrom
Copies properties from another DataSource to the current object.
(Overrides NamedCollectionItem..::..AssignFrom(NamedCollectionItem).)
Protected method SetName
Sets the name of the current item.
(Inherited from NamedCollectionItem.)
Protected method SetNameInt
For internal use.
(Inherited from NamedCollectionItem.)

Properties

  Name Description
Public property ConnectionProperties
Gets the ConnectionProperties object containing information about how to connect to the current data source.

A DataSource must have one and only one of the following properties specified: DataSourceReference or ConnectionProperties.

Public property DataSourceReference
Gets or sets the full folder path (for example, “/salesreports/salesdatabase”) or relative path (for example, “salesdatabase”) to a data source on the same server. Relative paths start in the same folder as the report. The data source uses the connection properties from the DataSourceReference. If report rendered locally then this property should contain path to the RDS file describing datasource.

A DataSource must have one and only one of the following properties specified: DataSourceReference or ConnectionProperties.

Public property Name
Gets or sets the unique name of the current object. If an item with the specified name already exists in the collection, an exception is thrown.
(Inherited from NamedCollectionItem.)
Public property Owner
Gets the DataSources collection containing the current object.
Public property Report
Gets the C1RdlReport object containing the current object.
Public property Transaction
Gets or sets a value indicating whether the data sets that use this data source should be executed in a single transaction.

The default is false.

See Also