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.
  • 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

ALink API (Unmanaged API Reference)

Other Resources

IALink2 Interface
IALink Interface