WalletItemCustomProperty.Name 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 or sets the custom property label.

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

Property Value

String

Platform::String

winrt::hstring

The custom property label.

Attributes

Remarks

Unlike the key for the DisplayProperties collection, the Name value of a WalletItemCustomProperty object is intended for user UI. Setting the value that's reported by Name is a required parameter when you construct a new WalletItemCustomProperty (see WalletItemCustomProperty constructor). In most cases you won't be setting the Name property of an existing WalletItemCustomProperty, as opposed to constructing a new one.

Applies to