Back to Devexpress

SpreadsheetDataSourceLoadingOptions.CustomAssemblyBehavior Property

officefileapi-devexpress-dot-xtraspreadsheet-dot-spreadsheetdatasourceloadingoptions.md

latest4.3 KB
Original Source

SpreadsheetDataSourceLoadingOptions.CustomAssemblyBehavior Property

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

Namespace : DevExpress.XtraSpreadsheet

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

NuGet Package : DevExpress.Spreadsheet.Core

Declaration

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

Property Value

TypeDefaultDescription
SpreadsheetCustomAssemblyBehaviorNeverLoad

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

|

Available values:

NameDescription
Prompt

Decide whether to load each custom assembly. Raise the CustomAssemblyLoading event and check the arguments. If the event is not handled - query the notification service. Cancel loading if neither event nor service provide a response.

| | LoadSilently |

Custom assemblies can be loaded without notice.

| | NeverLoad |

No custom assembly can ever be loaded.

|

Property Paths

You can access this nested property as listed below:

Object TypePath to CustomAssemblyBehavior
DocumentOptions

.DataSourceLoading .CustomAssemblyBehavior

|

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

Mail Merge in WinForms Spreadsheet Control

CustomAssemblyBehavior

CustomAssemblyLoading

ICustomAssemblyLoadingNotificationService

SpreadsheetDataSourceLoadingOptions Class

SpreadsheetDataSourceLoadingOptions Members

DevExpress.XtraSpreadsheet Namespace