SyncKnowledge.Deserialize Method (SyncIdFormatGroup, array<Byte , ReplicaKeyMap)

Creates a new instance of the SyncKnowledge class by using serialized data and the specified replica key map.

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

Syntax

'Declaration
Public Shared Function Deserialize ( _
    idFormats As SyncIdFormatGroup, _
    data As Byte(), _
    replicaKeyMap As ReplicaKeyMap _
) As SyncKnowledge
'Usage
Dim idFormats As SyncIdFormatGroup
Dim data As Byte()
Dim replicaKeyMap As ReplicaKeyMap
Dim returnValue As SyncKnowledge

returnValue = SyncKnowledge.Deserialize(idFormats, _
    data, replicaKeyMap)
public static SyncKnowledge Deserialize(
    SyncIdFormatGroup idFormats,
    byte[] data,
    ReplicaKeyMap replicaKeyMap
)
public:
static SyncKnowledge^ Deserialize(
    SyncIdFormatGroup^ idFormats, 
    array<unsigned char>^ data, 
    ReplicaKeyMap^ replicaKeyMap
)
static member Deserialize : 
        idFormats:SyncIdFormatGroup * 
        data:byte[] * 
        replicaKeyMap:ReplicaKeyMap -> SyncKnowledge 
public static function Deserialize(
    idFormats : SyncIdFormatGroup, 
    data : byte[], 
    replicaKeyMap : ReplicaKeyMap
) : SyncKnowledge

Parameters

  • data
    Type: System.Byte[]
    The serialized data used to initialize the new knowledge object.

Return Value

Type: Microsoft.Synchronization.SyncKnowledge
The new knowledge object instance that is initialized by using the serialized data and the specified replica key map.

Exceptions

Exception Condition
SerializationException

data contains a replica key map.

ArgumentNullException

idFormats, data, or replicaKeyMap is a null reference (Nothing in Visual Basic).

See Also

Reference

SyncKnowledge Class

Deserialize Overload

Microsoft.Synchronization Namespace