Dela via


ForgottenKnowledge.Deserialize Method

Deserializes a forgotten knowledge instance from the specified 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 ForgottenKnowledge
'Usage
Dim idFormats As SyncIdFormatGroup
Dim data As Byte()
Dim returnValue As ForgottenKnowledge

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

Parameters

  • data
    Type: System.Byte[]
    The serialized forgotten knowledge data.

Return Value

Type: Microsoft.Synchronization.ForgottenKnowledge
A new forgotten knowledge object that is filled with the deserialized data.

Exceptions

Exception Condition
ArgumentNullException

idFormats is a null reference (Nothing in Visual Basic).

Remarks

For this form of Deserialize(), it is expected that the data will include data for a ReplicaKeyMap instance. If not, SerializationException will be thrown.

See Also

Reference

ForgottenKnowledge Class

Microsoft.Synchronization Namespace