Share via


MigrationReadObj Object

Use the MigrationReadObj object to read values for each attribute in the Membership Directory, and then send them to the MigrationProfile object. The MigrationReadObj object first reads the type of each attribute and then fills in the data.

Interface

The MigrationReadObj object supports the following interface:

interface IMigrationRead::IUnknown
{
    HRESULT Initialize([in] long lNumProfiles,
                       [in] size_is(lNumProfiles)] PROFILE Profile[],
                       [in] BSTR bstrModifyProgID);

    HRESULT ReadAttributes([in] BSTR bstrKeyName,
                           [in] long lProfile_id,
                           [out] SAFEARRAY(VARIANT)* AttributeStructure,
                           [out] VARIANT* varValueIndex,
                           [out] VARIANT* vMemberOfs);

    HRESULT MigrationFailed([in] BSTR bstrKeyName);

    HRESULT ShutDown();
};

Methods

The following table shows the methods of the MigrationReadObj object, and provides a description of each.

Method Description
Initialize Accepts an array of structs containing all the attributes for each profile ID and the connection to use. It uses this data to determine what attributes to read for a particular key based on the profile ID.
ReadAttributes Called for each migration that needs to take place. This method uses the profile ID to find out what attributes are associated with the key and reads these from the data source into the array.
MigrationFailed Called to set the attribute cn=Migration to FALSE when the migration of this object fails. This is of type binary and should not exist in the current schema.
Shutdown The MigrationProfile object calls the Shutdown method, which is used to free the created connection pools.


All rights reserved.