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);  


[in] The metadata token that was remapped.

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


Header: CorSym.idl, CorSym.h

See also