AllJoynAboutDataView.GetDataBySessionPortAsync 方法

定义

重载

GetDataBySessionPortAsync(String, AllJoynBusAttachment, UInt16, Language)

重要

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

获取特定语言会话的“关于数据”。

GetDataBySessionPortAsync(String, AllJoynBusAttachment, UInt16)

重要

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

获取会话的“关于数据”。

GetDataBySessionPortAsync(String, AllJoynBusAttachment, UInt16, Language)

重要

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

获取特定语言会话的“关于数据”。

public:
 static IAsyncOperation<AllJoynAboutDataView ^> ^ GetDataBySessionPortAsync(Platform::String ^ uniqueName, AllJoynBusAttachment ^ busAttachment, unsigned short sessionPort, Language ^ language);
/// [Windows.Foundation.Metadata.Overload("GetDataBySessionPortWithLanguageAsync")]
/// [Windows.Foundation.Metadata.RemoteAsync]
 static IAsyncOperation<AllJoynAboutDataView> GetDataBySessionPortAsync(winrt::hstring const& uniqueName, AllJoynBusAttachment const& busAttachment, uint16_t const& sessionPort, Language const& language);
/// [Windows.Foundation.Metadata.Overload("GetDataBySessionPortWithLanguageAsync")]
/// [Windows.Foundation.Metadata.RemoteAsync]
/// [Windows.Foundation.Metadata.Deprecated("AllJoynAboutDataView has been deprecated.  For more info, see MSDN.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 786432, "Windows.Foundation.UniversalApiContract")]
 static IAsyncOperation<AllJoynAboutDataView> GetDataBySessionPortAsync(winrt::hstring const& uniqueName, AllJoynBusAttachment const& busAttachment, uint16_t const& sessionPort, Language const& language);
[Windows.Foundation.Metadata.Overload("GetDataBySessionPortWithLanguageAsync")]
[Windows.Foundation.Metadata.RemoteAsync]
public static IAsyncOperation<AllJoynAboutDataView> GetDataBySessionPortAsync(string uniqueName, AllJoynBusAttachment busAttachment, ushort sessionPort, Language language);
[Windows.Foundation.Metadata.Overload("GetDataBySessionPortWithLanguageAsync")]
[Windows.Foundation.Metadata.RemoteAsync]
[Windows.Foundation.Metadata.Deprecated("AllJoynAboutDataView has been deprecated.  For more info, see MSDN.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 786432, "Windows.Foundation.UniversalApiContract")]
public static IAsyncOperation<AllJoynAboutDataView> GetDataBySessionPortAsync(string uniqueName, AllJoynBusAttachment busAttachment, ushort sessionPort, Language language);
function getDataBySessionPortAsync(uniqueName, busAttachment, sessionPort, language)
Public Shared Function GetDataBySessionPortAsync (uniqueName As String, busAttachment As AllJoynBusAttachment, sessionPort As UShort, language As Language) As IAsyncOperation(Of AllJoynAboutDataView)

参数

uniqueName
String

Platform::String

winrt::hstring

唯一名称。

busAttachment
AllJoynBusAttachment

支持会话的总线附件。

sessionPort
UInt16

unsigned short

uint16_t

用于连接到会话的端口。

language
Language

要返回描述性数据的语言。

返回

一个 对象,其中包含以设置语言表示的会话的“关于”数据。

属性

Windows 要求

应用功能
allJoyn

另请参阅

适用于

GetDataBySessionPortAsync(String, AllJoynBusAttachment, UInt16)

重要

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

获取会话的“关于数据”。

public:
 static IAsyncOperation<AllJoynAboutDataView ^> ^ GetDataBySessionPortAsync(Platform::String ^ uniqueName, AllJoynBusAttachment ^ busAttachment, unsigned short sessionPort);
/// [Windows.Foundation.Metadata.Overload("GetDataBySessionPortAsync")]
/// [Windows.Foundation.Metadata.RemoteAsync]
 static IAsyncOperation<AllJoynAboutDataView> GetDataBySessionPortAsync(winrt::hstring const& uniqueName, AllJoynBusAttachment const& busAttachment, uint16_t const& sessionPort);
/// [Windows.Foundation.Metadata.Overload("GetDataBySessionPortAsync")]
/// [Windows.Foundation.Metadata.RemoteAsync]
/// [Windows.Foundation.Metadata.Deprecated("AllJoynAboutDataView has been deprecated.  For more info, see MSDN.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 786432, "Windows.Foundation.UniversalApiContract")]
 static IAsyncOperation<AllJoynAboutDataView> GetDataBySessionPortAsync(winrt::hstring const& uniqueName, AllJoynBusAttachment const& busAttachment, uint16_t const& sessionPort);
[Windows.Foundation.Metadata.Overload("GetDataBySessionPortAsync")]
[Windows.Foundation.Metadata.RemoteAsync]
public static IAsyncOperation<AllJoynAboutDataView> GetDataBySessionPortAsync(string uniqueName, AllJoynBusAttachment busAttachment, ushort sessionPort);
[Windows.Foundation.Metadata.Overload("GetDataBySessionPortAsync")]
[Windows.Foundation.Metadata.RemoteAsync]
[Windows.Foundation.Metadata.Deprecated("AllJoynAboutDataView has been deprecated.  For more info, see MSDN.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 786432, "Windows.Foundation.UniversalApiContract")]
public static IAsyncOperation<AllJoynAboutDataView> GetDataBySessionPortAsync(string uniqueName, AllJoynBusAttachment busAttachment, ushort sessionPort);
function getDataBySessionPortAsync(uniqueName, busAttachment, sessionPort)
Public Shared Function GetDataBySessionPortAsync (uniqueName As String, busAttachment As AllJoynBusAttachment, sessionPort As UShort) As IAsyncOperation(Of AllJoynAboutDataView)

参数

uniqueName
String

Platform::String

winrt::hstring

唯一名称。

busAttachment
AllJoynBusAttachment

支持会话的总线附件。

sessionPort
UInt16

unsigned short

uint16_t

用于连接到会话的端口。

返回

包含会话的关于数据的对象。

属性

Windows 要求

应用功能
allJoyn

另请参阅

适用于