Share via


MapControl.MapServiceErrorOccurred 事件

定義

與 Azure 地圖服務 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 呼叫同步引發以觸發事件。

適用於