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
)
static member Deserialize :
idFormats:SyncIdFormatGroup *
data:byte[] *
replicaKeyMap:ReplicaKeyMap -> SyncKnowledge
public static function Deserialize(
idFormats : SyncIdFormatGroup,
data : byte[],
replicaKeyMap : ReplicaKeyMap
) : SyncKnowledge
參數
- idFormats
型別:Microsoft.Synchronization. . :: . .SyncIdFormatGroup
提供者的識別碼格式結構描述。
- data
型別:array<System. . :: . .Byte> [] () [] []
用來初始化新知識物件的序列化資料。
- replicaKeyMap
型別:Microsoft.Synchronization. . :: . .ReplicaKeyMap
與此知識相關聯的複寫機碼對應。
傳回值
型別:Microsoft.Synchronization. . :: . .SyncKnowledge
使用序列化資料和指定之複寫機碼對應初始化的新知識物件執行個體。
例外
例外狀況 | 條件 |
---|---|
SerializationException | data 包含複寫機碼對應。 |
ArgumentNullException | idFormats、data 或 replicaKeyMap 是 null Nothing nullptr unit null 參考 (在 Visual Basic 中為 Nothing) 。 |