SqlUserDefinedTypeAttribute.IsFixedLength Property


The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Indicates whether all instances of this user-defined type are the same length.

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

public bool IsFixedLength { get; set; }

Property Value

Type: System.Boolean

true if all instances of this type are the same length; otherwise false.

If set to true, all instances of UDTs corresponding to this common language runtime (CLR) type must have a length in bytes exactly equal to MaxByteSize. This attribute is only relevant for UDTs with UserDefined serialization Format.

.NET Framework
Available since 2.0
Return to top