Share via


IKnowledgeSyncProvider::BeginSession

Notifies the provider that it is joining a synchronization session.

Syntax

HRESULT BeginSession(
  SYNC_PROVIDER_ROLE role,
  ISyncSessionState * pSessionState);

Parameters

  • role
    [in] The role of this provider, relative to the other provider in the session.

  • pSessionState
    [in] The current status of the corresponding session.

Return Value

  • S_OK

  • Provider-determined error codes

Remarks

The provider must return an error if it cannot begin a session. This can occur when the provider has not been initialized, has an invalid configuration, or is already enlisted in an active session.

See Also

Reference

IKnowledgeSyncProvider Interface