SqlUserDefinedTypeAttribute Constructor (Format)


A required attribute on a user-defined type (UDT), used to confirm that the given type is a UDT and to indicate the storage format of the UDT.

Namespace:   Microsoft.SqlServer.Server
Assembly:  System.Data (in System.Data.dll)

Public Sub New (
	format As Format


Type: Microsoft.SqlServer.Server.Format

One of the Format values representing the serialization format of the type.

The following example specifies that the Format of the user-defined type is SerializedDataWithMetadataand theMaxByteSize is 8000 bytes.

<SqlUserDefinedType(Format.Native, MaxByteSize:=8000)>
Public Class SampleType

End Class

.NET Framework
Available since 2.0
Return to top