SqlUserDefinedAggregateAttribute クラス
アセンブリ: System.Data (system.data.dll 内)

<AttributeUsageAttribute(AttributeTargets.Class Or AttributeTargets.Struct, AllowMultiple:=False, Inherited:=False)> _ Public NotInheritable Class SqlUserDefinedAggregateAttribute Inherits Attribute
[AttributeUsageAttribute(AttributeTargets.Class|AttributeTargets.Struct, AllowMultiple=false, Inherited=false)] public sealed class SqlUserDefinedAggregateAttribute : Attribute
[AttributeUsageAttribute(AttributeTargets::Class|AttributeTargets::Struct, AllowMultiple=false, Inherited=false)] public ref class SqlUserDefinedAggregateAttribute sealed : public Attribute

SqlUserDefinedAggregateAttribute カスタム属性の割り当てられたクラス定義には、その定義とバインドされるユーザー定義集計が SQL Server によって作成されます。すべてのユーザー定義集計には、この属性を使って注釈を付ける必要があります。
ユーザー定義集計とその例の詳細については、SQL Server 2005 Books Online の「CLR ユーザー定義集計」を参照してください。

ユーザー定義集計の SqlUserDefinedAggregateAttribute 属性の例を次に示します。この集計は、カスタムのシリアル化を使用して、シリアル化するときの最大サイズを 8,000 バイトに指定し、null、重複、および順序に対して不変です。
Imports System Imports System.Data Imports System.IO Imports Microsoft.SqlServer.Server <Serializable(), SqlUserDefinedAggregate(Microsoft.SqlServer.Server.Format.UserDefined, _ IsInvariantToNulls:=True, _ IsInvariantToDuplicates:=False, _ IsInvariantToOrder:=False, _ MaxByteSize:=8000)> _ Public Class Concatenate Implements Microsoft.SqlServer.Server.IBinarySerialize
using System; using System.IO; using System.Data.Sql; using System.Data.SqlTypes; using System.Text; using Microsoft.SqlServer.Server; [Serializable] [Microsoft.SqlServer.Server.SqlUserDefinedAggregate( Microsoft.SqlServer.Server.Format.UserDefined, IsInvariantToNulls = true, IsInvariantToDuplicates = false, IsInvariantToOrder = false, MaxByteSize = 8000) ] public class Concatenate : Microsoft.SqlServer.Server.IBinarySerialize {

System.Attribute
Microsoft.SqlServer.Server.SqlUserDefinedAggregateAttribute


Windows 98, Windows 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
開発プラットフォームの中には、.NET Framework によってサポートされていないバージョンがあります。サポートされているバージョンについては、「システム要件」を参照してください。


- SqlUserDefinedAggregateAttribute クラスのページへのリンク