共用方式為


SyncKnowledge.Deserialize 方法 (SyncIdFormatGroup, Byte , ReplicaKeyMap)

使用序列化資料和指定的複寫機碼對應,建立 SyncKnowledge 類別的新執行個體。

命名空間: Microsoft.Synchronization
組件: Microsoft.Synchronization (在 microsoft.synchronization.dll)

語法

'宣告
Public Shared Function Deserialize ( _
    idFormats As SyncIdFormatGroup, _
    data As Byte(), _
    replicaKeyMap As ReplicaKeyMap _
) As SyncKnowledge
'用途
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

參數

  • idFormats
    提供者的識別碼格式結構描述。
  • data
    用來初始化新知識物件的序列化資料。
  • replicaKeyMap
    與此知識相關聯的複寫機碼對應。

傳回值

使用序列化資料和指定之複寫機碼對應初始化的新知識物件執行個體。

備註

如果 data 包含序列化的複寫機碼對應,這個方法就會擲回 SerializationException

請參閱

參考

SyncKnowledge 類別
SyncKnowledge 成員
Microsoft.Synchronization 命名空間