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
Declaration
Type GetFieldSourceType(
string name,
string dataMember
)
Function GetFieldSourceType(
name As String,
dataMember As String
) As Type
Parameters
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. NOTEThe dataMember parameter should be specified for a SQL Data Source (a query name) or Entity Framework Data Source (a data member name) only. |
Returns
Type | Description |
---|---|
Type | A Type value that is the type of the field. |
Remarks
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.
Note that dataSource is the DashboardSqlDataSource class instance.