This documentation is archived and is not being maintained.

GetScope Method

Gets an import scope.


HRESULT GetScope(
    mdAssembly AssemblyID,
    mdToken FileToken,
    DWORD dwScope,
    IMetaDataImport** ppImportScope
) PURE;

AssemblyID

Unique ID of assembly to import to.

FileToken

Unique ID of the file to import from.

dwScope

Zero-based scope to import.

ppImportScope

Receives IMetaDataImport Interface interface for the scope.

Returns S_OK if the method succeeds.

Requires alink.h

Show: