ChangeBatch.Deserialize Method (SyncIdFormatGroup, array<Byte )
Static method that creates a change batch object and initializes it by using an ID format schema and data from a byte array.
Namespace: Microsoft.Synchronization
Assembly: Microsoft.Synchronization (in Microsoft.Synchronization.dll)
Syntax
'Declaration
Public Shared Function Deserialize ( _
idFormats As SyncIdFormatGroup, _
data As Byte() _
) As ChangeBatch
'Usage
Dim idFormats As SyncIdFormatGroup
Dim data As Byte()
Dim returnValue As ChangeBatch
returnValue = ChangeBatch.Deserialize(idFormats, _
data)
public static ChangeBatch Deserialize(
SyncIdFormatGroup idFormats,
byte[] data
)
public:
static ChangeBatch^ Deserialize(
SyncIdFormatGroup^ idFormats,
array<unsigned char>^ data
)
static member Deserialize :
idFormats:SyncIdFormatGroup *
data:byte[] -> ChangeBatch
public static function Deserialize(
idFormats : SyncIdFormatGroup,
data : byte[]
) : ChangeBatch
Parameters
- idFormats
Type: Microsoft.Synchronization.SyncIdFormatGroup
The ID format schema of the provider.
- data
Type: System.Byte[]
The change batch data.
Return Value
Type: Microsoft.Synchronization.ChangeBatch
A change batch object that is initialized by using data from the byte array.
Exceptions
Exception | Condition |
---|---|
ArgumentNullException | idFormats or data is a null reference (Nothing in Visual Basic). |
SerializationException | A problem occurred during serialization. |
Remarks
Typically, the data in the byte array will have been generated from prior serialization of a change batch object.