Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

IMetaDataEmit::SetHandler Method

Sets the method referenced by the specified IUnknown pointer as a notification callback for token remaps.

HRESULT SetHandler ( 
    [in]  IUnknown    *pUnk


[in] The handler to register.

The metadata engine sends notification by using the method that is provided by SetHandler, to compilers that do not generate records in an optimized way and that would like to optimize saved records.

If the callback method is not provided through SetHandler, no optimization will be performed on save except where several import scopes have been merged using IMapToken on merge for each scope.

Platforms: See .NET Framework System Requirements.

Header: Cor.h

Library: Used as a resource in MSCorEE.dll

.NET Framework Versions: 4.6 RC, 4.5.2, 4.5.1, 4.5, 4, 3.5 SP1, 3.5, 3.0 SP1, 3.0, 2.0 SP1, 2.0, 1.1, 1.0

© 2015 Microsoft