WalletItemCustomProperty.Name 屬性
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
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
屬性值
自訂屬性標籤。
- 屬性
備註
不同于 DisplayProperties 集合的索引鍵, WalletItemCustomProperty 物件的 Name 值適用于使用者 UI。 當您建構新的 WalletItemCustomProperty (請參閱 WalletItemCustomProperty 建構 函式) 時,設定 Name 所報告的值是必要參數。 在大部分情況下,您不會設定現有 WalletItemCustomProperty的 Name 屬性,而不是建構新的。