Back to Devexpress

DashboardConfigurator.CustomAssemblyLoading Event

dashboard-devexpress-dot-dashboardweb-dot-dashboardconfigurator-8826f1fa.md

latest3.9 KB
Original Source

DashboardConfigurator.CustomAssemblyLoading Event

Occurs before a custom assembly is loaded for use as DashboardEFDataSource.

Namespace : DevExpress.DashboardWeb

Assembly : DevExpress.Dashboard.v25.2.Web.dll

NuGet Package : DevExpress.Web.Dashboard.Common

Declaration

csharp
public event CustomAssemblyLoadingWebEventHandler CustomAssemblyLoading
vb
Public Event CustomAssemblyLoading As CustomAssemblyLoadingWebEventHandler

Event Data

The CustomAssemblyLoading event's data class is CustomAssemblyLoadingWebEventArgs. The following properties provide information specific to this event:

PropertyDescription
AllowLoadingGets or sets whether loading a custom assembly is allowed. Inherited from DashboardCustomAssemblyLoadingEventArgs.
AssemblyPathGets the path to the external assembly containing the Entity Framework model. Inherited from DashboardCustomAssemblyLoadingEventArgs.
ContextNameGets the name of the Entity Framework context. Inherited from DashboardCustomAssemblyLoadingEventArgs.
DashboardIdGets the dashboard identifier.
DataSourceComponentNameGets the component name of the Entity Framework data source. Inherited from DashboardCustomAssemblyLoadingEventArgs.
DataSourceNameGets the name of the Entity Framework data source. Inherited from DashboardCustomAssemblyLoadingEventArgs.

Remarks

Tip

For information on how to use the DashboardConfigurator‘s API, see the following topic: Server-Side API Overview.

The CustomAssemblyLoadingProhibitedException is thrown if the external assembly containing the Entity Framework model provides data for the DashboardEFDataSource.

You can use the CustomAssemblyLoading event to allow loading a custom assembly. To do this, set the DashboardCustomAssemblyLoadingEventArgs.AllowLoading event parameter to true.

See Also

DashboardConfigurator Class

DashboardConfigurator Members

DevExpress.DashboardWeb Namespace