StringMap.MapChanged 事件
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
在地图内容更改时发生。
public:
virtual event MapChangedEventHandler<Platform::String ^, Platform::String ^> ^ MapChanged;
// Register
event_token MapChanged(MapChangedEventHandler<winrt::hstring, winrt::hstring const&> const& handler) const;
// Revoke with event_token
void MapChanged(event_token const* cookie) const;
// Revoke with event_revoker
StringMap::MapChanged_revoker MapChanged(auto_revoke_t, MapChangedEventHandler<winrt::hstring, winrt::hstring const&> const& handler) const;
public event MapChangedEventHandler<string,string> MapChanged;
function onMapChanged(eventArgs) { /* Your code */ }
stringMap.addEventListener("mapchanged", onMapChanged);
stringMap.removeEventListener("mapchanged", onMapChanged);
- or -
stringMap.onmapchanged = onMapChanged;
Public Custom Event MapChanged As MapChangedEventHandler(Of String, String) Implements MapChanged
事件类型
MapChangedEventHandler<Platform::String,Platform::String>
MapChangedEventHandler<winrt::hstring,winrt::hstring>