C1.PivotEngine Assembly / C1.PivotEngine Namespace / C1PivotEngine Class / GetMetadata Method / GetMetadata(IEnumerable,CancellationToken) Method
Data source collection.
Enables task cancellation.

In This Topic
GetMetadata(IEnumerable,CancellationToken) Method
In This Topic
Lists fields with their types and provides other metadata for a data source.
Syntax
'Declaration
 
Public Overloads Shared Function GetMetadata( _
   ByVal dataSource As IEnumerable, _
   ByVal cancelToken As CancellationToken _
) As Task(Of Dictionary(Of String,Object))
 

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