Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

ICustomAssemblyLoadingNotificationService.RequestApproval(String) Method

Determines whether a custom assembly is allowed to load.

Namespace: DevExpress.XtraSpreadsheet.Services

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

NuGet Package: DevExpress.Spreadsheet.Core

#Declaration

bool RequestApproval(
    string assemblyPath
)

#Parameters

Name Type Description
assemblyPath String

A string that is the full path to the custom assembly file.

#Returns

Type Description
Boolean

true, to load a custom assembly; otherwise, false.

#Remarks

The RequestApproval method determines whether a custom assembly containing the Entity Framework compiled data model is safe to load and does not compromise the application security.

The RequestApproval method is called when the SpreadsheetControl.CustomAssemblyLoading event has no subscribers or the e.Handled property is set to true within the event handler code.

See Also