Share via


GetScope2 Method

Gets an import scope.

HRESULT GetScope2(
    mdAssembly AssemblyID,
    mdToken FileToken,
    DWORD dwScope,
    IMetaDataImport2** ppImportScope
) PURE; 

Parameters

  • AssemblyID
    ID of target assembly.

  • FileToken
    ID of file from which to import.

  • dwScope
    Zero-based scope to import.

  • ppImportScope
    Receives pointer to IMetaDataImport2 Interface interface for 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

IALink2 Interface

IALink Interface