Microsoft.SqlServer.Server.Format Enumeration

Used by Microsoft.SqlServer.Server.SqlUserDefinedTypeAttribute and Microsoft.SqlServer.Server.SqlUserDefinedAggregateAttribute to indicate the serialization format of a user-defined type (UDT) or aggregate.

Syntax

public enum Format

Remarks

Used by Microsoft.SqlServer.Server.SqlUserDefinedTypeAttribute and Microsoft.SqlServer.Server.SqlUserDefinedAggregateAttribute to indicate the serialization format of a user-defined type (UDT) or aggregate.

Members

Member NameDescription
Native

The Native serialization format uses a very simple algorithm that enables SQL Server to store an efficient representation of the UDT on disk. Types marked for Native serialization can only have value types (structs in Microsoft Visual C# and structures in Microsoft Visual Basic .NET) as members. Members of reference types (such as classes in Visual C# and Visual Basic), either user-defined or those existing in the framework (such as string), are not supported.

Unknown

The serialization format is unknown.

UserDefined

The UserDefined serialization format gives the developer full control over the binary format through the Microsoft.SqlServer.Server.IBinarySerialize.Write and Microsoft.SqlServer.Server.IBinarySerialize.Read methods.

Requirements

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