Compartilhar via


GetScope Method

Gets an import scope.

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

Parameters

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

Return Value

Returns S_OK if the method succeeds.

Requirements

Requires alink.h

See Also

Concepts

IALink Interface

IALink2 Interface

ALink API (Unmanaged API Reference)