-
Notifications
You must be signed in to change notification settings - Fork 299
/
Copy pathIBinarySerialize.xml
54 lines (42 loc) · 3.65 KB
/
IBinarySerialize.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
<?xml version="1.0"?>
<docs>
<members name="IBinarySerialize">
<IBinarySerialize>
<summary>Provides custom implementation for user-defined type (UDT) and user-defined aggregate serialization and deserialization.</summary>
<remarks>
<format type="text/markdown"><![CDATA[
## Remarks
User-defined types (UDTs) and user-defined aggregates are required to define a storage format, which can be either <xref:Microsoft.Data.SqlClient.Server.Format>.`Native` or <xref:Microsoft.Data.SqlClient.Server.Format>.`UserDefined`.
<xref:Microsoft.Data.SqlClient.Server.Format>.`Native` allows SQL Server to handle serialization and deserialization automatically, but the format has restrictions on the kind of types it can handle. <xref:Microsoft.Data.SqlClient.Server.Format>.`UserDefined` allows user-defined types and aggregates to handle their own serialization. User-defined types and aggregates must be marked with <xref:Microsoft.Data.SqlClient.Server.Format>.`UserDefined` in the `SqlUserDefinedType` or `SqlUserDefinedAggregate` attribute, and must implement the <xref:Microsoft.Data.SqlClient.Server.IBinarySerialize> interface.
Note that even with custom serialization, the total size of each instance must be under the maximum allowed limit, currently 8000 bytes.
]]></format>
</remarks>
</IBinarySerialize>
<Read>
<param name="r">The <see cref="T:System.IO.BinaryReader" /> stream from which the object is deserialized.</param>
<summary>Generates a user-defined type (UDT) or user-defined aggregate from its binary form.</summary>
<remarks>
<format type="text/markdown"><]
]]></format>
</remarks>
</Read>
<Write>
<param name="w">The <see cref="T:System.IO.BinaryWriter" /> stream to which the UDT or user-defined aggregate is serialized.</param>
<summary>Converts a user-defined type (UDT) or user-defined aggregate into its binary format so that it may be persisted.</summary>
<remarks>
<format type="text/markdown"><]
]]></format>
</remarks>
</Write>
</members>
</docs>