WalletItem.RelevantLocations Property

Definition

Caution

The ApplicationModel.Wallet namespace is no longer supported, and will soon be deprecated. Developers are encouraged to avoid using this namespace.

Gets a collection of all relevant locations for the wallet item.

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)

Property Value

A collection of all relevant locations for the wallet item

Attributes

Remarks

The string key for items in this collection is usually a programmatic identifier that isn't intended for user UI. Data within a WalletRelevantLocation value is sometimes intended for UI.

Each WalletRelevantLocation value has a Position property to capture a BasicGeoposition value, and associates each position with a position-specific display message. You can see example code for this in Quickstart: Using the APIs.

Applies to

See also