Back to Devexpress

BeforeLoadCustomAssemblyEventArgs.AllowLoading Property

corelibraries-devexpress-dot-dataaccess-dot-entityframework-dot-beforeloadcustomassemblyeventargs.md

latest2.8 KB
Original Source

BeforeLoadCustomAssemblyEventArgs.AllowLoading Property

Specifies whether loading a custom assembly is allowed.

Namespace : DevExpress.DataAccess.EntityFramework

Assembly : DevExpress.DataAccess.v25.2.dll

NuGet Package : DevExpress.DataAccess

Declaration

csharp
public bool AllowLoading { get; set; }
vb
Public Property AllowLoading As Boolean

Property Value

TypeDescription
Boolean

true to allow the load operation for a custom assembly; otherwise false.

|

Remarks

An unauthorized attempt to load a custom assembly will result in throwing a CustomAssemblyLoadingProhibitedException.

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the AllowLoading property.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

reporting-wpf-designer-load-custom-assembly/CS/MainWindow.xaml.cs#L16

csharp
void OnBeforeCustomAssemblyLoad(object sender, BeforeLoadCustomAssemblyEventArgs args) {
    args.AllowLoading = true;
}

reporting-wpf-designer-load-custom-assembly/VB/MainWindow.xaml.vb#L18

vb
Private Sub OnBeforeCustomAssemblyLoad(ByVal sender As Object, ByVal args As BeforeLoadCustomAssemblyEventArgs)
    args.AllowLoading = True
End Sub

See Also

BeforeLoadCustomAssemblyEventArgs Class

BeforeLoadCustomAssemblyEventArgs Members

DevExpress.DataAccess.EntityFramework Namespace