Share via


ExportTypeForwarder Method

Adds a type forwarder to the type table of the given assembly.

HRESULT ExportTypeForwarder(
    mdAssemblyRef   tkAssemblyRef,
    LPCWSTR         pszTypename,
    DWORD           dwFlags,
    mdExportedType* pType
) PURE;

Parameters

  • tkAssemblyRef
    Reference to the assembly to which the type forwarder refers.

  • pszTypename
    Fully qualified type name to export.

  • dwFlags
    ComType flags such as tdPublic or tdNested. This value may be passed to IMetaDataAssemblyEmit::DefineExportedType Method.

  • pType
    Receives the token of the exported type. This is necessary only for emitting nested types.

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)