Microsoft.SqlServer.Server.SqlUserDefinedTypeAttribute Class

Used to mark a type definition in an assembly as a user-defined type (UDT) in SQL Server. The properties on the attribute reflect the physical characteristics used when the type is registered with SQL Server. This class cannot be inherited.

See Also: SqlUserDefinedTypeAttribute Members

Syntax

[System.AttributeUsage(System.AttributeTargets.Class | System.AttributeTargets.Struct, AllowMultiple=false, Inherited=true)]
public sealed class SqlUserDefinedTypeAttribute : Attribute

Remarks

SQL Server creates a user-defined type that is bound to the type definition that has the Microsoft.SqlServer.Server.SqlUserDefinedTypeAttribute custom attribute. Every UDT must be annotated with this attribute. See tp://go.microsoft.com/fwlink/?LinkId=128028 for more information about UDTs, including an example of a UDT.

Requirements

Namespace: Microsoft.SqlServer.Server
Assembly: System.Data (in System.Data.dll)
Assembly Versions: 2.0.0.0
Since: .NET 2.0