Share via


ImportTypes2 Method

Initiates the import of types. Call this method to begin importing types from each scope imported via ImportFile Method.

HRESULT ImportTypes2(
    mdAssembly AssemblyID,
    mdToken FileToken,
    DWORD dwScope,
    HALINKENUM* phEnum,
    IMetaDataImport2** ppImportScope,
    DWORD* pdwCountOfTypes
) PURE;

Parameters

  • AssemblyID
    ID of assembly into which to import.

  • FileToken
    ID of file to from which to import.

  • dwScope
    Zero-based scope from which to import.

  • phEnum
    Receives enumerator handle for the types in the given scope.

  • ppImportScope
    Optionally receives IMetaDataImport2 Interface interface.

  • pdwCountOfTypes
    Optionally receives count of types in the specified scope.

Return Value

Returns S_OK if the method succeeds.

Requirements

Requires alink.h

See Also

Concepts

IALink2 Interface

IALink Interface

ALink API (Unmanaged API Reference)