AllJoynAboutData.SoftwareVersion 属性

定义

重要

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

应用的版本号。 此属性的使用适用于生成者应用。

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

void SoftwareVersion(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 SoftwareVersion();

void SoftwareVersion(winrt::hstring value);
public string SoftwareVersion { get; set; }
public string SoftwareVersion { [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.softwareVersion;
allJoynAboutData.softwareVersion = string;
Public Property SoftwareVersion As String

属性值

String

Platform::String

winrt::hstring

版本号。

属性

Windows 要求

应用功能
allJoyn

注解

默认情况下,从 UWP 应用清单的“版本”字段或桌面应用 EXE 的“产品版本”属性中提取返回的值。

适用于