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
- idFormats
Type: Microsoft.Synchronization.SyncIdFormatGroup
The ID format schema of the provider.
- data
Type: System.Byte[]
The serialized data used to initialize the new knowledge object.
- replicaKeyMap
Type: Microsoft.Synchronization.ReplicaKeyMap
The replica key map associated with the knowledge.
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). |