WalletItemCustomProperty.Name 属性

定义

注意

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

获取或设置自定义属性标签。

public:
 property Platform::String ^ Name { Platform::String ^ get(); void set(Platform::String ^ value); };
winrt::hstring Name();

void Name(winrt::hstring value);
/// [get: Windows.Foundation.Metadata.Deprecated("IWalletItemCustomProperty is deprecated and might not work on all platforms. For more info, see MSDN.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 917504, "Windows.Foundation.UniversalApiContract")]
/// [set: Windows.Foundation.Metadata.Deprecated("IWalletItemCustomProperty is deprecated and might not work on all platforms. For more info, see MSDN.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 917504, "Windows.Foundation.UniversalApiContract")]
winrt::hstring Name();

void Name(winrt::hstring value);
public string Name { get; set; }
public string Name { [Windows.Foundation.Metadata.Deprecated("IWalletItemCustomProperty is deprecated and might not work on all platforms. For more info, see MSDN.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 917504, "Windows.Foundation.UniversalApiContract")] get; [Windows.Foundation.Metadata.Deprecated("IWalletItemCustomProperty is deprecated and might not work on all platforms. For more info, see MSDN.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 917504, "Windows.Foundation.UniversalApiContract")] set; }
var string = walletItemCustomProperty.name;
walletItemCustomProperty.name = string;
Public Property Name As String

属性值

String

Platform::String

winrt::hstring

自定义属性标签。

属性

注解

DisplayProperties 集合的键不同, WalletItemCustomProperty 对象的 Name 值适用于用户 UI。 在构造新的 WalletItemCustomProperty 时,设置 Name 报告的值是必需参数, (请参阅 WalletItemCustomProperty 构造函数) 。 在大多数情况下,你不会设置现有 WalletItemCustomProperty 的 Name 属性,而不是构造一个新钱包。

适用于