VistaDB 5
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.