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


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


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:// for more information about UDTs, including an example of a UDT.


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