WalletItem.RelevantLocations 屬性
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
public:
property IMap<Platform::String ^, WalletRelevantLocation ^> ^ RelevantLocations { IMap<Platform::String ^, WalletRelevantLocation ^> ^ get(); };
IMap<winrt::hstring, WalletRelevantLocation const&> RelevantLocations();
/// [get: Windows.Foundation.Metadata.Deprecated("IWalletItem is deprecated and might not work on all platforms. For more info, see MSDN.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 917504, "Windows.Foundation.UniversalApiContract")]
IMap<winrt::hstring, WalletRelevantLocation const&> RelevantLocations();
public IDictionary<string,WalletRelevantLocation> RelevantLocations { get; }
public IDictionary<string,WalletRelevantLocation> RelevantLocations { [Windows.Foundation.Metadata.Deprecated("IWalletItem is deprecated and might not work on all platforms. For more info, see MSDN.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 917504, "Windows.Foundation.UniversalApiContract")] get; }
var iMap = walletItem.relevantLocations;
Public ReadOnly Property RelevantLocations As IDictionary(Of String, WalletRelevantLocation)
屬性值
電子包專案所有相關位置的集合
- 屬性
備註
此集合中專案的字串索引鍵通常是不適合用戶 UI 的程式設計識別碼。 在 WalletRelevantLocation值內的資料有時適用于 UI。
每個 WalletRelevantLocation 值都有 Position 屬性可擷取 BasicGeoposition 值,並將每個位置與位置特定的顯示訊息產生關聯。 您可以在 快速入門:使用 API中看到此範例程式碼。