IBinarySerialize Interface

Note: This interface is new in the .NET Framework version 2.0.

Provides custom implementation for user-defined type (UDT) and user-defined aggregate serialization and deserialization.

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

Public Interface IBinarySerialize
Dim instance As IBinarySerialize

public interface IBinarySerialize
public interface IBinarySerialize

User-defined types (UDTs) and user-defined aggregates are required to define a storage format, which can be either Format.Native or Format.UserDefined.

Format.Native allows SQL Server to handle serialization and deserialization automatically, but the format has restrictions on the kind of types it can handle. Format.UserDefined allows user-defined types and aggregates to handle their own serialization. User-defined types and aggregates must be marked with Format.UserDefined in the SqlUserDefinedType or SqlUserDefinedAggregate attribute, and must implement the IBinarySerialize interface.

Note that even with custom serialization, the total size of each instance must be under the maximum allowed limit, currently 8000 bytes.

Windows 98, Windows 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see System Requirements.

.NET Framework

Supported in: 2.0

Community Additions