Dela via


ChangeBatchBase.Serialize Method

Serializes the change batch to an array of bytes.

Namespace:  Microsoft.Synchronization
Assembly:  Microsoft.Synchronization (in Microsoft.Synchronization.dll)

Syntax

'Declaration
Public Function Serialize As Byte()
'Usage
Dim instance As ChangeBatchBase
Dim returnValue As Byte()

returnValue = instance.Serialize()
public byte[] Serialize()
public:
array<unsigned char>^ Serialize()
member Serialize : unit -> byte[] 
public function Serialize() : byte[]

Return Value

Type: System.Byte[]
An array of bytes that contains the serialized change batch data.

Exceptions

Exception Condition
SyncInvalidOperationException

The change batch contains a group that was started but not ended.

ObjectDisposedException

This ChangeBatchBase has been disposed.

InvalidSerializationVersionException

The target serialization version does not support custom filters.

[T:Microsoft:Synchronization.InvalidOperationException]

A group has been begun but not ended on this ChangeBatchBase.

See Also

Reference

ChangeBatchBase Class

Microsoft.Synchronization Namespace