Share via


ISymUnmanagedWriter::RemapToken Method

Notifies the symbol writer that a metadata token has been remapped as the metadata was emitted. If the symbol writer has stored the old token within the symbol store, it must either update the stored token with the new value, or it must save the map for the corresponding symbol reader to remap during the read phase.

HRESULT RemapToken(
    [in] mdToken  oldToken,
    [in] mdToken  newToken);

Parameters

  • oldToken
    [in] The metadata token that was remapped.

  • newToken
    [in] The new metadata token to which oldToken was remapped.

Return Value

S_OK if the method succeeds; otherwise, E_FAIL or some other error code.

Requirements

Header: CorSym.idl

See Also

Concepts

ISymUnmanagedWriter Interface