Constructs a data table from the specified columns a data frame.
Namespace:
Extreme.Data
Assembly:
Extreme.Data (in Extreme.Data.dll) Version: 3.1.0
public static DataTable ToDataTable<C>(
this IDataFrame dataFrame,
IEnumerable<C> columnKeys
)
<ExtensionAttribute>
Public Shared Function ToDataTable(Of C) (
dataFrame As IDataFrame,
columnKeys As IEnumerable(Of C)
) As DataTable
public:
[ExtensionAttribute]
generic<typename C>
static DataTable^ ToDataTable(
IDataFrame^ dataFrame,
IEnumerable<C>^ columnKeys
)
[<ExtensionAttribute>]
static member ToDataTable :
dataFrame : IDataFrame *
columnKeys : IEnumerable<'C> -> DataTable
Parameters
- dataFrame
- Type: Extreme.DataAnalysisIDataFrame
The data frame to convert. - columnKeys
- Type: System.Collections.GenericIEnumerableC
A sequence of column keys.
Type Parameters
- C
- The type of the column keys of the data frame.
Return Value
Type:
DataTableA 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).
Reference