Method GetDataSource
GetDataSource(string)
Retrieves a registered DataSource by its identifier.
public DataSource GetDataSource(string dataSourceIdentifier)
Parameters
dataSourceIdentifierstringThe unique identifier of the DataSource to retrieve.
Returns
- DataSource
The DataSource with the specified identifier.
Exceptions
- ArgumentNullException
Thrown if
dataSourceIdentifierisnull, empty, or whitespace.- KeyNotFoundException
Thrown if no DataSource with the specified identifier is found.