Back to Devexpress

CustomAssemblyLoadingProhibitedException Class

corelibraries-devexpress-dot-dataaccess-dot-entityframework-68de60d1.md

latest2.7 KB
Original Source

CustomAssemblyLoadingProhibitedException Class

An exception thrown on an attempt to load a custom assembly by an Entity Framework data source when it was not permitted to do this.

Namespace : DevExpress.DataAccess.EntityFramework

Assembly : DevExpress.DataAccess.v25.2.dll

NuGet Package : DevExpress.DataAccess

Declaration

csharp
public class CustomAssemblyLoadingProhibitedException :
    Exception
vb
Public Class CustomAssemblyLoadingProhibitedException
    Inherits Exception

Remarks

To allow an Entity Framework data source to load a specific custom assembly, handle the EFDataSource.BeforeLoadCustomAssembly or EFDataSource.BeforeLoadCustomAssemblyGlobal event and set the BeforeLoadCustomAssemblyEventArgs.AllowLoading property to true.

The CustomAssemblyLoadingProhibitedException provides the CustomAssemblyLoadingProhibitedException.AssemblyPath and CustomAssemblyLoadingProhibitedException.ContextName properties that return values assigned to the corresponding properties of the BeforeLoadCustomAssemblyEventArgs class.

Inheritance

Object Exception CustomAssemblyLoadingProhibitedException

See Also

CustomAssemblyLoadingProhibitedException Members

BeforeLoadCustomAssembly

BeforeLoadCustomAssemblyGlobal

DevExpress.DataAccess.EntityFramework Namespace