<PackageReference Include="System.Data.SqlClient" Version="4.8.1" />

SqlUserDefinedAggregateAttribute

Indicates that the type should be registered as a user-defined aggregate. The properties on the attribute reflect the physical attributes used when the type is registered with SQL Server. This class cannot be inherited.
using System; namespace Microsoft.SqlServer.Server { [AttributeUsage(AttributeTargets.Class | AttributeTargets.Struct, AllowMultiple = false, Inherited = false)] public sealed class SqlUserDefinedAggregateAttribute : Attribute { public const int MaxByteSizeValue = 8000; public Format Format { get { throw new PlatformNotSupportedException(System.SR.PlatformNotSupported_DataSqlClient); } } public bool IsInvariantToDuplicates { get { throw new PlatformNotSupportedException(System.SR.PlatformNotSupported_DataSqlClient); } set { throw new PlatformNotSupportedException(System.SR.PlatformNotSupported_DataSqlClient); } } public bool IsInvariantToNulls { get { throw new PlatformNotSupportedException(System.SR.PlatformNotSupported_DataSqlClient); } set { throw new PlatformNotSupportedException(System.SR.PlatformNotSupported_DataSqlClient); } } public bool IsInvariantToOrder { get { throw new PlatformNotSupportedException(System.SR.PlatformNotSupported_DataSqlClient); } set { throw new PlatformNotSupportedException(System.SR.PlatformNotSupported_DataSqlClient); } } public bool IsNullIfEmpty { get { throw new PlatformNotSupportedException(System.SR.PlatformNotSupported_DataSqlClient); } set { throw new PlatformNotSupportedException(System.SR.PlatformNotSupported_DataSqlClient); } } public int MaxByteSize { get { throw new PlatformNotSupportedException(System.SR.PlatformNotSupported_DataSqlClient); } set { throw new PlatformNotSupportedException(System.SR.PlatformNotSupported_DataSqlClient); } } public string Name { get { throw new PlatformNotSupportedException(System.SR.PlatformNotSupported_DataSqlClient); } set { throw new PlatformNotSupportedException(System.SR.PlatformNotSupported_DataSqlClient); } } public SqlUserDefinedAggregateAttribute(Format format) { throw new PlatformNotSupportedException(System.SR.PlatformNotSupported_DataSqlClient); } } }