VistaDB 6
VistaDB / Developer's Guide / CLR Stored Procedures and Functions / Technical Details of CLR Procs and Functions / CLR Aggregate Functions
CLR Aggregate Functions
Functions that are to be used as aggregates must have the following attribute on their function declaration.

[VistaDBClrProcedure( Kind=VistaDBClrProcedureKind.Aggregate)]

This identifies the CLR Procedure as a special type of procedure known as an aggregate that can be used for aggregate operations in SQL statements.