Replaces the current data flow with the supplied DataFlow.
Namespace: Spotfire.Dxp.Data.DataOperations
Assembly: Spotfire.Dxp.Data (in Spotfire.Dxp.Data.dll) Version: 30.0.11525.4184 (30.0.11525.4184)
Syntax
C#
public void ReplaceDataFlow( DataFlow dataFlow )
Parameters
- dataFlow
- Type: Spotfire.Dxp.DataDataFlow
The new data flow.
Exceptions
Exception | Condition |
---|---|
InvalidOperationException | Thrown if replacing the data flow is not possible. |
Remarks
Note that replacing the data flow resets the data loading behavior. The reason is that not all DataLoadingBehavior settings are applicable to all types of data flows.
The data operation will be refreshed synchronously.
If only transformations are to be replaced, use ReplaceTransformations(IEnumerableDataTransformation) instead, since that method doesn't reset the data loading behavior.
It is not possible to replace with a data flow where the supplied DataSource is a DataTableDataSource.
Version Information
See Also