Method RemoveDataSource
RemoveDataSource(DataSource)
Removes a specified data source from the agent memory.
public bool RemoveDataSource(DataSource dataSource)Parameters
- dataSourceDataSource
- The DataSource to be removed. 
Returns
- bool
- trueif the data source was successfully removed; otherwise,- false.
Exceptions
- ArgumentNullException
- Thrown if - dataSourceis null.
RemoveDataSource(string)
Removes a data source from the agent memory using its unique identifier.
public bool RemoveDataSource(string dataSourceIdentifier)Parameters
- dataSourceIdentifierstring
- The unique identifier of the DataSource to be removed. 
Returns
- bool
- trueif a data source matching the identifier was successfully removed; otherwise,- false.
Exceptions
- ArgumentNullException
- Thrown if - dataSourceIdentifieris null, empty, or consists only of white-space characters.