MapControl.MapServiceErrorOccurred 事件
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
與 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 呼叫同步引發以觸發事件。