DataSetUtils

Overview

DatasetUtils is a static class which provides helper methods for working with DataTable. This class is used internally by the Streamers to manage data tables.

Location

Class Methods


ApplyDataTableSchema

Creates a new DataTable corresponding to the provided SchemaDataTable.

 

class method ApplyDataTableSchema(dataTable: DataTable; schemaTable: SchemaDataTable)

 

static void ApplyDataTableSchema(DataTable dataTable, SchemaDataTable schemaTable)

 

Shared Sub ApplyDataTableSchema(dataTable As DataTable, schemaTable As SchemaDataTable)

Parameters:

  • dataTable:
  • schemaTable:

CreateDataTable

Creates a new DataTable instance and calls ApplyDataTableSchema to fill it with the given schema.

 

class method CreateDataTable(dataSet: DataSet; schemaTable: SchemaDataTable): DataTable

 

static DataTable CreateDataTable(DataSet dataSet, SchemaDataTable schemaTable)

 

Shared Function CreateDataTable(dataSet As DataSet, schemaTable As SchemaDataTable) As DataTable

Parameters:

  • dataSet:
  • schemaTable:

RemoveDataTable

Removes the given table from the DataSet and clears all references and constraints related to it.

 

class method RemoveDataTable(dataSet: DataSet; tableName: String)

 

static void RemoveDataTable(DataSet dataSet, String tableName)

 

Shared Sub RemoveDataTable(dataSet As DataSet, tableName As String)

Parameters:

  • dataSet:
  • tableName: