Contains 方法 (SyncKnowledge)
指出這個知識是否了解指定的知識。
命名空間: Microsoft.Synchronization
組件: Microsoft.Synchronization (在 Microsoft.Synchronization.dll 中)
語法
'宣告
Public Function Contains ( _
syncKnowledge As SyncKnowledge _
) As Boolean
'用途
Dim instance As SyncKnowledge
Dim syncKnowledge As SyncKnowledge
Dim returnValue As Boolean
returnValue = instance.Contains(syncKnowledge)
public bool Contains(
SyncKnowledge syncKnowledge
)
public:
bool Contains(
SyncKnowledge^ syncKnowledge
)
member Contains :
syncKnowledge:SyncKnowledge -> bool
public function Contains(
syncKnowledge : SyncKnowledge
) : boolean
參數
- syncKnowledge
型別:Microsoft.Synchronization. . :: . .SyncKnowledge
要查閱的知識。
傳回值
型別:System. . :: . .Boolean
如果已知 syncKnowledge,則為 true,否則為 false。
例外
例外狀況 | 條件 |
---|---|
InvalidOperationException | 這個 SyncKnowledge 物件尚未初始化。 |
ArgumentNullException | syncKnowledge 是 null Nothing nullptr unit null 參考 (在 Visual Basic 中為 Nothing) 。 |
InvalidKnowledgeVersionException |
備註
您不需要先針對 syncKnowledge 呼叫 MapRemoteKnowledgeToLocal,然後再將它傳遞給這個方法。