Share via


ExportType Method

Specifies that a type is exportable.

HRESULT ExportType(
    mdAssembly      AssemblyID,
    mdToken         FileToken,
    mdTypeDef       TypeToken,
    LPCWSTR         pszTypename,
    DWORD           dwFlags,
    mdExportedType* pType
) PURE;

Parameters

  • AssemblyID
    ID of the assembly to export from.

  • FileToken
    File token or assembly ID of file that defines the exportable type.

  • TypeToken
    Token of type to be made exportable.

  • pszTypename
    Fully qualified type name to be made exportable.

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

  • pType
    Receives token for exported type.

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