WalletItemCustomProperty 類別

定義

警告

不再支援 ApplicationModel.Wallet 命名空間,即將淘汰。 建議開發人員避免使用此命名空間。

在電子錢包專案上定義自訂屬性。 應用程式可以在專案的詳細資料檢視或卡片檢視背面顯示資料。

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
繼承
Object Platform::Object IInspectable WalletItemCustomProperty
屬性

Windows 需求

裝置系列
Windows 10 (已於 10.0.10240.0 引進)
API contract
Windows.Foundation.UniversalApiContract (已於 v1.0 引進)

備註

WalletItemCustomProperty 值會儲存在WalletItemDisplayProperties屬性中。 除了基本資料 (NameValue) 一個 WalletItemCustomProperty 物件,還有其他屬性會影響屬性出現在預設的電子包 UI (,例如 SummaryViewPositionDetailViewPosition) 。

建構函式

WalletItemCustomProperty(String, String)

警告

不再支援 ApplicationModel.Wallet 命名空間,即將淘汰。 建議開發人員避免使用此命名空間。

初始化 WalletItemCustomProperty 類別的新實例。

屬性

AutoDetectLinks

警告

不再支援 ApplicationModel.Wallet 命名空間,即將淘汰。 建議開發人員避免使用此命名空間。

取得或設定這個 WalletItemCustomProperty 是否在顯示時擷取實體且可採取動作。

DetailViewPosition

警告

不再支援 ApplicationModel.Wallet 命名空間,即將淘汰。 建議開發人員避免使用此命名空間。

取得或設定當電子錢包專案的詳細資料檢視中顯示時,此屬性的選擇性位置。

Name

警告

不再支援 ApplicationModel.Wallet 命名空間,即將淘汰。 建議開發人員避免使用此命名空間。

取得或設定自訂屬性標籤。

SummaryViewPosition

警告

不再支援 ApplicationModel.Wallet 命名空間,即將淘汰。 建議開發人員避免使用此命名空間。

取得或設定當在電子包專案的摘要檢視中顯示時,此屬性的選擇性位置。

Value

警告

不再支援 ApplicationModel.Wallet 命名空間,即將淘汰。 建議開發人員避免使用此命名空間。

取得或設定自訂屬性值。

適用於

另請參閱