Back to Devexpress

CustomFunctions.Unregister(String) Method

xtrareports-devexpress-dot-xtrareports-dot-expressions-dot-customfunctions-dot-unregister-x28-system-dot-string-x29.md

latest2.5 KB
Original Source

CustomFunctions.Unregister(String) Method

Unregisters a custom function with the specified name from the End-User Report Designer‘s Expression Editor.

Namespace : DevExpress.XtraReports.Expressions

Assembly : DevExpress.XtraReports.v25.2.dll

NuGet Package : DevExpress.Reporting.Core

Declaration

csharp
public static bool Unregister(
    string name
)
vb
Public Shared Function Unregister(
    name As String
) As Boolean

Parameters

NameTypeDescription
nameString

A String object that the name of a custom function to unregister.

|

Returns

TypeDescription
Boolean

true , if a function with the specified name has successfully been unregistred; otherwise, false.

|

Remarks

Call the Unregister metod at applicaton startup to remove a registered custom function:

csharp
DevExpress.XtraReports.Expressions.CustomFunctions.Unregister("CustomFormatFunction");
vb
DevExpress.XtraReports.Expressions.CustomFunctions.Unregister("CustomFormatFunction")

After this code is executed, the function is not available in the Expression Editor and won’t be evaluated in expressions.

Tip

A custom function in DevExpress Reporting is an object that descends from the ReportCustomFunctionOperatorBase abstract class. Review the following topic for more information and code examples: CustomFunctions.

See Also

CustomFunctions Class

CustomFunctions Members

DevExpress.XtraReports.Expressions Namespace