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