Skip to main content
All docs
V24.2

SqlDataSource.BeforeLoadProviderCustomAssembly Event

Occurs on an attempt to load a provider custom assembly (the FireBirdConnectionParameters.ClientLibrary property value) by the Firebird data provider for a specific SQL data source.

Namespace: DevExpress.DataAccess.Sql

Assembly: DevExpress.DataAccess.v24.2.dll

NuGet Package: DevExpress.DataAccess

#Declaration

public event BeforeLoadProviderCustomAssemblyEventHandler BeforeLoadProviderCustomAssembly

#Event Data

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

Property Description
AllowLoading Specifies whether loading a Firebird provider custom assembly is allowed.
AssemblyPath Specifies the path to the requested Firebird provider assembly.

#Remarks

Loading provider custom assemblies referenced by Firebird data sources is forbidden. The ProviderCustomAssemblyLoadingProhibitedException occurs on an unauthorized attempt to load a custom assembly as the FireBirdConnectionParameters.ClientLibrary parameter.

To permit loading a specific assembly, handle the BeforeLoadProviderCustomAssembly event (or the SqlDataSource.BeforeLoadProviderCustomAssemblyGlobal event) and specify the following properties of the BeforeLoadProviderCustomAssemblyEventArgs object:

BeforeLoadProviderCustomAssemblyEventArgs.AllowLoading
Specifies whether loading a Firebird provider custom assembly is allowed.
BeforeLoadProviderCustomAssemblyEventArgs.AssemblyPath
Specifies the path to the requested Firebird provider assembly.
See Also