Sdílet prostřednictvím


IKnowledgeBuilder::BuildKnowledge

Builds an ISyncKnowledge or IForgottenKnowledge object from the parts that are provided by the other builder methods.

HRESULT BuildKnowledge(
  REFIID riid,
  IUnknown** ppiSyncKnowledge);

Parameters

  • riid
    [in] The IID of the knowledge interface to build. Must be either IID_ISyncKnowledge or IID_IForgottenKnowledge.
  • ppiSyncKnowledge
    [out, riid_is(riid)] Returns a newly built knowledge object that is of the type specified by riid.

Return Value

  • S_OK

  • E_POINTER

  • E_OUTOFMEMORY

  • E_NOINTERFACE if riid is not IID_ISyncKnowledge or IID_IForgottenKnowledge.

  • SYNC_E_INVALIDOPERATION if the IKnowledgeBuilder object is in an improper state, such as when IKnowledgeBuilder::Initialize has not been called.

  • SYNC_E_INCOMPLETEREPLICAKEYMAP if the IReplicaKeyMap object that is contained in the IKnowledgeBuilder object is incomplete.

See Also

Reference

IKnowledgeBuilder Interface