Share via


WalletItem.RelevantLocations 属性

定义

注意

ApplicationModel.Wallet 命名空间不再受支持,不久将弃用。 建议开发人员避免使用此命名空间。

获取钱包项的所有相关位置的集合。

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 中查看此示例代码。

适用于

另请参阅