Share via


UnmanagedSyncProviderWrapper.Initialize Method

Initializes the wrapper so that it represents the specified unmanaged provider and uses the specified change data retriever adapter to convert between managed and unmanaged data retrievers.

Namespace:  Microsoft.Synchronization
Assembly:  Microsoft.Synchronization (in Microsoft.Synchronization.dll)

Syntax

'Declaration
Public Sub Initialize ( _
    unmanagedKnowledgeSyncProvider As Object, _
    changeDataRetrieverAdapter As IChangeDataRetrieverAdapter _
)
'Usage
Dim instance As UnmanagedSyncProviderWrapper
Dim unmanagedKnowledgeSyncProvider As Object
Dim changeDataRetrieverAdapter As IChangeDataRetrieverAdapter

instance.Initialize(unmanagedKnowledgeSyncProvider, _
    changeDataRetrieverAdapter)
public void Initialize(
    Object unmanagedKnowledgeSyncProvider,
    IChangeDataRetrieverAdapter changeDataRetrieverAdapter
)
public:
void Initialize(
    Object^ unmanagedKnowledgeSyncProvider, 
    IChangeDataRetrieverAdapter^ changeDataRetrieverAdapter
)
member Initialize : 
        unmanagedKnowledgeSyncProvider:Object * 
        changeDataRetrieverAdapter:IChangeDataRetrieverAdapter -> unit 
public function Initialize(
    unmanagedKnowledgeSyncProvider : Object, 
    changeDataRetrieverAdapter : IChangeDataRetrieverAdapter
)

Parameters

  • unmanagedKnowledgeSyncProvider
    Type: System.Object
    The unmanaged provider that is wrapped by this object.
  • changeDataRetrieverAdapter
    Type: Microsoft.Synchronization.IChangeDataRetrieverAdapter
    An adapter that can convert the change data retriever and change data between its managed and unmanaged representations. Can be a null reference (Nothing in Visual Basic) if no conversion is needed.

Exceptions

Exception Condition
ArgumentNullException

unmanagedKnowledgeSyncProvider is a null reference (Nothing in Visual Basic).

ArgumentException

unmanagedKnowledgeSyncProvider is not a ISyncProvider object.

InvalidOperationException

This UnmanagedSyncProviderWrapper object is already initialized.

Remarks

Initialize can be called only when the UnmanagedSyncProviderWrapper object was created by using the default constructor.

Initialize can be called only one time.

See Also

Reference

UnmanagedSyncProviderWrapper Class

Microsoft.Synchronization Namespace