MapControl.MapServiceErrorOccurred 事件
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
与Azure Maps Web 服务的通信失败时发生。
// Register
event_token MapServiceErrorOccurred(TypedEventHandler<MapControl, MapControlMapServiceErrorOccurredEventArgs const&> const& handler) const;
// Revoke with event_token
void MapServiceErrorOccurred(event_token const* cookie) const;
// Revoke with event_revoker
MapControl::MapServiceErrorOccurred_revoker MapServiceErrorOccurred(auto_revoke_t, TypedEventHandler<MapControl, MapControlMapServiceErrorOccurredEventArgs const&> const& handler) const;
public event TypedEventHandler<MapControl,MapControlMapServiceErrorOccurredEventArgs> MapServiceErrorOccurred;
function onMapServiceErrorOccurred(eventArgs) { /* Your code */ }
mapControl.addEventListener("mapserviceerroroccurred", onMapServiceErrorOccurred);
mapControl.removeEventListener("mapserviceerroroccurred", onMapServiceErrorOccurred);
- or -
mapControl.onmapserviceerroroccurred = onMapServiceErrorOccurred;
Public Custom Event MapServiceErrorOccurred As TypedEventHandler(Of MapControl, MapControlMapServiceErrorOccurredEventArgs)
事件类型
注解
可以随时引发此事件,而不是与触发它的 API 调用同步。