OfflineMapPackage.StatusChanged 事件

定义

OfflineMapPackageQueryResult 的状态更改时发生。

// Register
event_token StatusChanged(TypedEventHandler<OfflineMapPackage, IInspectable const&> const& handler) const;

// Revoke with event_token
void StatusChanged(event_token const* cookie) const;

// Revoke with event_revoker
OfflineMapPackage::StatusChanged_revoker StatusChanged(auto_revoke_t, TypedEventHandler<OfflineMapPackage, IInspectable const&> const& handler) const;
public event TypedEventHandler<OfflineMapPackage,object> StatusChanged;
function onStatusChanged(eventArgs) { /* Your code */ }
offlineMapPackage.addEventListener("statuschanged", onStatusChanged);
offlineMapPackage.removeEventListener("statuschanged", onStatusChanged);
- or -
offlineMapPackage.onstatuschanged = onStatusChanged;
Public Custom Event StatusChanged As TypedEventHandler(Of OfflineMapPackage, Object) 

事件类型

注解

如果想要知道之前搜索的映射包的状态是否已更改,请处理此事件。 例如,如果映射包的 Status 属性以前返回了“ 正在下载”的值,则当状态更改为“ 已下载”时,此事件会通知你。

适用于