Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Indicates whether the specified knowledge of the specified item is known by this knowledge.
Syntax
HRESULT ContainsKnowledgeForItem(
[in] ISyncKnowledge *pKnowledge,
[in] const BYTE *pbItemId
);
Parameters
[in] pKnowledge
The knowledge object that contains knowledge about pbItemId.
[in] pbItemId
The ID of the item to look up.
Return value
The possible return codes include, but are not limited to, the values shown in the following table.
| Return code | Description |
|---|---|
|
This object contains the knowledge known by pKnowledge about pbItemId. |
|
This object does not contain the knowledge known by pKnowledge about pbItemId. |
|
Invalid pointer. |
|
pbItemId is not of the format specified by the provider. |
Remarks
Another way to obtain the same result is to pass pbItemId to the ISyncKnowledge::ProjectOntoItem method of pKnowledge, and then take the resulting projected knowledge and pass it to the ISyncKnowledge::ContainsKnowledge method of this object.
Requirements
| Requirement | Value |
|---|---|
| Minimum supported client | Windows 7 [desktop apps only] |
| Minimum supported server | Windows Server 2008 R2 [desktop apps only] |
| Target Platform | Windows |
| Header | winsync.h |