Skip to main content

ICustomAssemblyLoadingNotificationService.RequestApproval(String) Method

Determines whether a custom assembly is allowed to load.

Namespace: DevExpress.XtraSpreadsheet.Services

Assembly: DevExpress.Spreadsheet.v24.1.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