corelibraries-devexpress-dot-dataaccess-dot-entityframework-dot-beforeloadcustomassemblyeventargs.md
Specifies whether loading a custom assembly is allowed.
Namespace : DevExpress.DataAccess.EntityFramework
Assembly : DevExpress.DataAccess.v25.2.dll
NuGet Package : DevExpress.DataAccess
public bool AllowLoading { get; set; }
Public Property AllowLoading As Boolean
| Type | Description |
|---|---|
| Boolean |
true to allow the load operation for a custom assembly; otherwise false.
|
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
void OnBeforeCustomAssemblyLoad(object sender, BeforeLoadCustomAssemblyEventArgs args) {
args.AllowLoading = true;
}
reporting-wpf-designer-load-custom-assembly/VB/MainWindow.xaml.vb#L18
Private Sub OnBeforeCustomAssemblyLoad(ByVal sender As Object, ByVal args As BeforeLoadCustomAssemblyEventArgs)
args.AllowLoading = True
End Sub
See Also
BeforeLoadCustomAssemblyEventArgs Class