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