IDashboardDataSource.GetFieldSourceType(String, String) Method

Gets the type of the field contained in the current data source.

Namespace: DevExpress.DashboardCommon

Assembly: DevExpress.Dashboard.v20.2.Core.dll


Type GetFieldSourceType(
    string name,
    string dataMember
Function GetFieldSourceType(
    name As String,
    dataMember As String
) As Type


Name Type Description
name String

A String value that specifies the name of the data source field.

dataMember String

A String value that specifies the name of the data member.


The dataMember parameter should be specified for a SQL Data Source (a query name) or Entity Framework Data Source (a data member name) only.


Type Description

A Type value that is the type of the field.


For example, the DashboardSqlDataSource class instance (dataSource) contains the SalesPerson query from the corresponding view contained in the standard Northwind database. In this case, the GetFieldSourceType method returns DateTime for the OrderDate field from the SalesPerson view.

((IDashboardDataSource)dataSource).GetFieldSourceType("OrderDate", "SalesPerson");

Note that dataSource is the DashboardSqlDataSource class instance.

See Also