.NET Framework 4.5.2+
.NET Framework 4.5.2+
.NET Standard 2.0+
.NET Core 3.0+

SpreadsheetDataSourceLoadingOptions.CustomAssemblyBehavior Property

Specifies the behavior when the EFDataSource attempts to load a custom assembly during mail merge.

Namespace: DevExpress.XtraSpreadsheet

Assembly: DevExpress.Spreadsheet.v19.2.Core.dll

Declaration

[DefaultValue(SpreadsheetCustomAssemblyBehavior.NeverLoad)]
public SpreadsheetCustomAssemblyBehavior CustomAssemblyBehavior { get; set; }
<DefaultValue(SpreadsheetCustomAssemblyBehavior.NeverLoad)>
Public Property CustomAssemblyBehavior As SpreadsheetCustomAssemblyBehavior
[DefaultValue(SpreadsheetCustomAssemblyBehavior.NeverLoad)]
public SpreadsheetCustomAssemblyBehavior CustomAssemblyBehavior { get; set; }
<DefaultValue(SpreadsheetCustomAssemblyBehavior.NeverLoad)>
Public Property CustomAssemblyBehavior As SpreadsheetCustomAssemblyBehavior
[DefaultValue(SpreadsheetCustomAssemblyBehavior.NeverLoad)]
public SpreadsheetCustomAssemblyBehavior CustomAssemblyBehavior { get; set; }
<DefaultValue(SpreadsheetCustomAssemblyBehavior.NeverLoad)>
Public Property CustomAssemblyBehavior As SpreadsheetCustomAssemblyBehavior

Property Value

Type Default Description
SpreadsheetCustomAssemblyBehavior

NeverLoad

A SpreadsheetCustomAssemblyBehavior enumeration member that specifies an action performed when attempting to load a custom assembly during mail merge.

Property Value

Type Default Description
SpreadsheetCustomAssemblyBehavior

NeverLoad

A SpreadsheetCustomAssemblyBehavior enumeration member that specifies an action performed when attempting to load a custom assembly during mail merge.

Property Value

Type Default Description
SpreadsheetCustomAssemblyBehavior

NeverLoad

A SpreadsheetCustomAssemblyBehavior enumeration member that specifies an action performed when attempting to load a custom assembly during mail merge.

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 SpreadsheetDataSourceWizardOptions.CustomAssemblyBehavior property to specify whether the Data Source Wizard can load a custom assembly containing the Entity Framework data context.

See Also