DataExtensions.ToDataTable Method

Definition

Namespace: Extreme.Data
Assembly: Extreme.Data (in Extreme.Data.dll) Version: 3.2.0

Overload List

ToDataTable(IDataFrame) Constructs a data table from a data frame.
ToDataTable(IDataFrame, String) Constructs a data table from a data frame.
ToDataTable<C>(IDataFrame, IEnumerable<C>) Constructs a data table from the specified columns a data frame.
ToDataTable<C>(IDataFrame, String, IEnumerable<C>) Constructs a data table from the specified columns a data frame.

ToDataTable(IDataFrame)

Constructs a data table from a data frame.
C#
public static DataTable ToDataTable(
	this IDataFrame dataFrame
)

Parameters

dataFrame  IDataFrame
The data frame to convert.

Return Value

DataTable
A new data table containing the data in dataFrame.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type IDataFrame. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).

ToDataTable(IDataFrame, String)

Constructs a data table from a data frame.
C#
public static DataTable ToDataTable(
	this IDataFrame dataFrame,
	string keyColumn
)

Parameters

dataFrame  IDataFrame
The data frame to convert.
keyColumn  String
The name of the column that contains the row index values.

Return Value

DataTable
A data table containing the columns in dataFrame, using keyColumn as the name for the column that contains the row index of the data frame.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type IDataFrame. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).

ToDataTable<C>(IDataFrame, IEnumerable<C>)

Constructs a data table from the specified columns a data frame.
C#
public static DataTable ToDataTable<C>(
	this IDataFrame dataFrame,
	IEnumerable<C> columnKeys
)

Parameters

dataFrame  IDataFrame
The data frame to convert.
columnKeys  IEnumerable<C>
A sequence of column keys.

Type Parameters

C
The type of the column keys of the data frame.

Return Value

DataTable
A data table containing the columns in columnKeys in dataFrame.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type IDataFrame. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).

ToDataTable<C>(IDataFrame, String, IEnumerable<C>)

Constructs a data table from the specified columns a data frame.
C#
public static DataTable ToDataTable<C>(
	this IDataFrame dataFrame,
	string keyColumn,
	IEnumerable<C> columnKeys
)

Parameters

dataFrame  IDataFrame
The data frame to convert.
keyColumn  String
The name of the column that contains the row index values.
columnKeys  IEnumerable<C>
A sequence of column names.

Type Parameters

C
The type of the column keys of the data frame.

Return Value

DataTable
A data table containing the columns in columnKeys in dataFrame, using keyColumn as the name for the column that contains the row index of the data frame.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type IDataFrame. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).

See Also