Share via


SyncKnowledge.Deserialize Method (SyncIdFormatGroup, 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
)
public static SyncKnowledge Deserialize (
    SyncIdFormatGroup idFormats, 
    byte[] data, 
    ReplicaKeyMap replicaKeyMap
)
public static function Deserialize (
    idFormats : SyncIdFormatGroup, 
    data : byte[], 
    replicaKeyMap : ReplicaKeyMap
) : SyncKnowledge

Parameters

  • idFormats
    The ID format schema of the provider.
  • data
    The serialized data used to initialize the new knowledge object.
  • replicaKeyMap
    The replica key map associated with the knowledge.

Return Value

The new knowledge object instance that is initialized by using the serialized data and the specified replica key map.

Remarks

If data contains a serialized replica key map, this method throws SerializationException.

See Also

Reference

SyncKnowledge Class
SyncKnowledge Members
Microsoft.Synchronization Namespace