WalletItemCustomProperty(String, String) 构造函数

定义

注意

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

初始化 WalletItemCustomProperty 类的新实例。

public:
 WalletItemCustomProperty(Platform::String ^ name, Platform::String ^ value);
 WalletItemCustomProperty(winrt::hstring const& name, winrt::hstring const& value);
/// [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")]
 WalletItemCustomProperty(winrt::hstring const& name, winrt::hstring const& value);
public WalletItemCustomProperty(string name, string value);
[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")]
public WalletItemCustomProperty(string name, string value);
function WalletItemCustomProperty(name, value)
Public Sub New (name As String, value As String)

参数

name
String

Platform::String

winrt::hstring

自定义属性标签。 设置初始 Name 值。

value
String

Platform::String

winrt::hstring

该属性的值。 设置初始 Value 值。

属性

适用于