WalletItemCustomProperty Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Caution
The ApplicationModel.Wallet namespace is no longer supported, and will soon be deprecated. Developers are encouraged to avoid using this namespace.
Defines a custom property on a wallet item. Apps can show data in the details view or back of card view of the item.
public ref class WalletItemCustomProperty sealed
/// [Windows.Foundation.Metadata.Activatable(Windows.ApplicationModel.Wallet.IWalletItemCustomPropertyFactory, 65536, Windows.Foundation.UniversalApiContract)]
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
class WalletItemCustomProperty final
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Activatable(Windows.ApplicationModel.Wallet.IWalletItemCustomPropertyFactory, 65536, "Windows.Foundation.UniversalApiContract")]
class WalletItemCustomProperty final
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Activatable(Windows.ApplicationModel.Wallet.IWalletItemCustomPropertyFactory, 65536, "Windows.Foundation.UniversalApiContract")]
/// [Windows.Foundation.Metadata.Deprecated("WalletItemCustomProperty is deprecated and might not work on all platforms. For more info, see MSDN.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 917504, "Windows.Foundation.UniversalApiContract")]
class WalletItemCustomProperty final
[Windows.Foundation.Metadata.Activatable(typeof(Windows.ApplicationModel.Wallet.IWalletItemCustomPropertyFactory), 65536, typeof(Windows.Foundation.UniversalApiContract))]
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
public sealed class WalletItemCustomProperty
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Activatable(typeof(Windows.ApplicationModel.Wallet.IWalletItemCustomPropertyFactory), 65536, "Windows.Foundation.UniversalApiContract")]
public sealed class WalletItemCustomProperty
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Activatable(typeof(Windows.ApplicationModel.Wallet.IWalletItemCustomPropertyFactory), 65536, "Windows.Foundation.UniversalApiContract")]
[Windows.Foundation.Metadata.Deprecated("WalletItemCustomProperty is deprecated and might not work on all platforms. For more info, see MSDN.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 917504, "Windows.Foundation.UniversalApiContract")]
public sealed class WalletItemCustomProperty
function WalletItemCustomProperty(name, value)
Public NotInheritable Class WalletItemCustomProperty
- Inheritance
- Attributes
Windows requirements
Device family |
Windows 10 (introduced in 10.0.10240.0)
|
API contract |
Windows.Foundation.UniversalApiContract (introduced in v1.0)
|
Remarks
WalletItemCustomProperty values are stored in the DisplayProperties property of a WalletItem. In addition to the basic data (Name and Value) a WalletItemCustomProperty object has other properties that influence how the property appears in the default wallet UI (for example SummaryViewPosition, DetailViewPosition).
Constructors
WalletItemCustomProperty(String, String) |
Caution The ApplicationModel.Wallet namespace is no longer supported, and will soon be deprecated. Developers are encouraged to avoid using this namespace. Initializes a new instance of the WalletItemCustomProperty class. |
Properties
AutoDetectLinks |
Caution The ApplicationModel.Wallet namespace is no longer supported, and will soon be deprecated. Developers are encouraged to avoid using this namespace. Gets or sets whether this WalletItemCustomProperty is entity-extracted and actionable upon display. |
DetailViewPosition |
Caution The ApplicationModel.Wallet namespace is no longer supported, and will soon be deprecated. Developers are encouraged to avoid using this namespace. Gets or sets the optional position of this property when shown in the wallet item's detail view. |
Name |
Caution The ApplicationModel.Wallet namespace is no longer supported, and will soon be deprecated. Developers are encouraged to avoid using this namespace. Gets or sets the custom property label. |
SummaryViewPosition |
Caution The ApplicationModel.Wallet namespace is no longer supported, and will soon be deprecated. Developers are encouraged to avoid using this namespace. Gets or sets the optional position of this property when shown in the summary view for a wallet item. |
Value |
Caution The ApplicationModel.Wallet namespace is no longer supported, and will soon be deprecated. Developers are encouraged to avoid using this namespace. Gets or sets the custom property value. |