SpreadsheetDataSourceLoadingOptions.CustomAssemblyBehavior Property
Specifies the behavior when the EFDataSource attempts to load a custom assembly during mail merge.
Namespace: DevExpress.XtraSpreadsheet
Assembly: DevExpress.Spreadsheet.v24.2.Core.dll
NuGet Package: DevExpress.Spreadsheet.Core
#Declaration
[DefaultValue(SpreadsheetCustomAssemblyBehavior.NeverLoad)]
public SpreadsheetCustomAssemblyBehavior CustomAssemblyBehavior { get; set; }
#Property Value
Type | Default | Description |
---|---|---|
Spreadsheet |
Never |
A Spreadsheet |
Available values:
Name | Description |
---|---|
Prompt | Decide whether to load each custom assembly. Raise the Custom |
Load |
Custom assemblies can be loaded without notice. |
Never |
No custom assembly can ever be loaded. |
#Property Paths
You can access this nested property as listed below:
Object Type | Path to Custom |
---|---|
Document |
|
#Remarks
This property is accessible using the SpreadsheetControl.Options.DataSourceLoading.CustomAssemblyBehavior notation.
The SpreadsheetCustomAssemblyBehavior.Prompt value raises the SpreadsheetControl.CustomAssemblyLoading event and calls the ICustomAssemblyLoadingNotificationService.RequestApproval method of the SpreadsheetControl service to determine whether to load the Entity Framework data context from a custom assembly.
Tip
Use the Spreadsheet