共用方式為


Contains 方法 (SyncId, SyncId, SyncId, SyncVersion)

指出這個知識是否了解指定的變更單位變更。

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

語法

'宣告
Public Function Contains ( _
    replicaId As SyncId, _
    itemId As SyncId, _
    changeUnitId As SyncId, _
    changeVersion As SyncVersion _
) As Boolean
'用途
Dim instance As SyncKnowledge
Dim replicaId As SyncId
Dim itemId As SyncId
Dim changeUnitId As SyncId
Dim changeVersion As SyncVersion
Dim returnValue As Boolean

returnValue = instance.Contains(replicaId, _
    itemId, changeUnitId, changeVersion)
public bool Contains(
    SyncId replicaId,
    SyncId itemId,
    SyncId changeUnitId,
    SyncVersion changeVersion
)
public:
bool Contains(
    SyncId^ replicaId, 
    SyncId^ itemId, 
    SyncId^ changeUnitId, 
    SyncVersion^ changeVersion
)
member Contains : 
        replicaId:SyncId * 
        itemId:SyncId * 
        changeUnitId:SyncId * 
        changeVersion:SyncVersion -> bool 
public function Contains(
    replicaId : SyncId, 
    itemId : SyncId, 
    changeUnitId : SyncId, 
    changeVersion : SyncVersion
) : boolean

參數

傳回值

型別:System. . :: . .Boolean
如果已知此變更單位變更,則為 true,否則為 false。

例外

例外狀況 條件
InvalidOperationException

這個 SyncKnowledge 物件尚未初始化。

ArgumentNullException

replicaId、itemId,、changeUnitId 或 changeVersion 是 null Nothing nullptr unit null 參考 (在 Visual Basic 中為 Nothing) 。

SyncIdFormatMismatchException

replicaId、itemId 或 changeUnitId 沒有採用針對這個知識物件所指定的識別碼格式。

請參閱

參考

SyncKnowledge類別

SyncKnowledge 成員

Contains 多載

Microsoft.Synchronization 命名空間