Serialize 方法 (Boolean)
將知識物件資料序列化為位元組陣列。
命名空間: Microsoft.Synchronization
組件: Microsoft.Synchronization (在 Microsoft.Synchronization.dll 中)
語法
'宣告
Public Function Serialize ( _
includeReplicaKeyMap As Boolean _
) As Byte()
'用途
Dim instance As SyncKnowledge
Dim includeReplicaKeyMap As Boolean
Dim returnValue As Byte()
returnValue = instance.Serialize(includeReplicaKeyMap)
public byte[] Serialize(
bool includeReplicaKeyMap
)
public:
array<unsigned char>^ Serialize(
bool includeReplicaKeyMap
)
member Serialize :
includeReplicaKeyMap:bool -> byte[]
public function Serialize(
includeReplicaKeyMap : boolean
) : byte[]
參數
- includeReplicaKeyMap
型別:System. . :: . .Boolean
true 表示要將複寫機碼對應包含在序列化的資料中,否則為 false。
傳回值
型別:array<System. . :: . .Byte> [] () [] []
包含序列化之知識物件資料的位元組陣列。
例外
例外狀況 | 條件 |
---|---|
InvalidOperationException | 這個 SyncKnowledge 物件尚未初始化。 |