Method GetDataSource
GetDataSource(string)
Retrieves the DataSource with the specified identifier. Throws a KeyNotFoundException if the data source does not exist.
public DataSource GetDataSource(string dataSourceIdentifier)
Parameters
dataSourceIdentifier
stringThe unique identifier for the DataSource.
Returns
- DataSource
The DataSource corresponding to the specified identifier.
Exceptions
- ArgumentNullException
Thrown if the identifier is null, empty, or white space.
- KeyNotFoundException
Thrown if a DataSource with the specified identifier is not found.