AllJoynAboutData.ModelNumber 属性

定义

重要

Windows.Devices.AllJoyn 命名空间中的类型已弃用,将来的 Windows 版本中可能不可用。 AllJoyn(由 AllSeen Alliance 赞助)是一种开源发现和通信协议,适用于物联网 (IoT) 方案,例如开灯和关灯以及读取温度。 有关替代项(如 IoTivity LiteIoTivity),请参阅 iotivity.org 网站。

运行应用的设备的型号。

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

void ModelNumber(winrt::hstring value);
/// [get: Windows.Foundation.Metadata.Deprecated("AllJoynAboutData has been deprecated.  For more info, see MSDN.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 786432, "Windows.Foundation.UniversalApiContract")]
/// [set: Windows.Foundation.Metadata.Deprecated("AllJoynAboutData has been deprecated.  For more info, see MSDN.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 786432, "Windows.Foundation.UniversalApiContract")]
winrt::hstring ModelNumber();

void ModelNumber(winrt::hstring value);
public string ModelNumber { get; set; }
public string ModelNumber { [Windows.Foundation.Metadata.Deprecated("AllJoynAboutData has been deprecated.  For more info, see MSDN.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 786432, "Windows.Foundation.UniversalApiContract")] get; [Windows.Foundation.Metadata.Deprecated("AllJoynAboutData has been deprecated.  For more info, see MSDN.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 786432, "Windows.Foundation.UniversalApiContract")] set; }
var string = allJoynAboutData.modelNumber;
allJoynAboutData.modelNumber = string;
Public Property ModelNumber As String

属性值

String

Platform::String

winrt::hstring

设备型号。

属性

Windows 要求

应用功能
allJoyn

注解

对于所有应用,默认为空字符串。

适用于