ComponentOne FlexPivot for WinForms
GetMetadata(IEnumerable,CancellationToken) Method

C1.DataEngine.4 Assembly > C1.FlexPivot Namespace > C1FlexPivotEngine Class > GetMetadata Method : GetMetadata(IEnumerable,CancellationToken) Method
Data source collection.
Enables task cancellation.
Lists fields with their types and provides other metadata for a data source.
Syntax
'Declaration
 
Public Overloads Shared Function GetMetadata( _
   ByVal dataSource As System.Collections.IEnumerable, _
   ByVal cancelToken As System.Threading.CancellationToken _
) As System.Threading.Tasks.Task(Of Dictionary(Of String,Object))
public static System.Threading.Tasks.Task<Dictionary<string,object>> GetMetadata( 
   System.Collections.IEnumerable dataSource,
   System.Threading.CancellationToken cancelToken
)

Parameters

dataSource
Data source collection.
cancelToken
Enables task cancellation.

Return Value

Dictionary containing key/value pairs for metadata parts, where key is the name of the part.
Remarks

Currently supported metadata parts are:

"fields": IList collection containing field information, objects with properties Name (string) and Type (System.Type)

"rowCount": Number of rows in the data source

See Also

Reference

C1FlexPivotEngine Class
C1FlexPivotEngine Members
Overload List