Freigeben über


ImportTypes Method

Initiates the importing of types from each scope imported via ImportFile Method.

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

Parameters

  • AssemblyID
    ID of the assembly to import to.
  • FileToken
    ID of the file to import from.
  • dwScope
    Zero-based scope to import.
  • phEnum
    Receives enumerator handle for the types in this scope.
  • pdwCountOfTypes
    Optionally receives count of types in the indicated scope.

Return Value

Returns S_OK if the method succeeds.

Requirements

Requires alink.h

See Also

Concepts

ALink API (Unmanaged API Reference)

Other Resources

IALink Interface
IALink2 Interface