Share via


AllJoynAboutDataView.GetDataBySessionPortAsync Method

Definition

Overloads

GetDataBySessionPortAsync(String, AllJoynBusAttachment, UInt16, Language)

Important

The types in the Windows.Devices.AllJoyn namespace are deprecated, and might not be available in future versions of Windows. AllJoyn—sponsored by AllSeen Alliance—was an open-source discovery and communication protocol for Internet of Things (IoT) scenarios such as turning lights on and off, and reading temperatures. For alternatives, such as IoTivity Lite and IoTivity, refer to the iotivity.org website.

Gets the About data for a session in a particular language.

GetDataBySessionPortAsync(String, AllJoynBusAttachment, UInt16)

Important

The types in the Windows.Devices.AllJoyn namespace are deprecated, and might not be available in future versions of Windows. AllJoyn—sponsored by AllSeen Alliance—was an open-source discovery and communication protocol for Internet of Things (IoT) scenarios such as turning lights on and off, and reading temperatures. For alternatives, such as IoTivity Lite and IoTivity, refer to the iotivity.org website.

Gets the About data for a session.

GetDataBySessionPortAsync(String, AllJoynBusAttachment, UInt16, Language)

Important

The types in the Windows.Devices.AllJoyn namespace are deprecated, and might not be available in future versions of Windows. AllJoyn—sponsored by AllSeen Alliance—was an open-source discovery and communication protocol for Internet of Things (IoT) scenarios such as turning lights on and off, and reading temperatures. For alternatives, such as IoTivity Lite and IoTivity, refer to the iotivity.org website.

Gets the About data for a session in a particular language.

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)

Parameters

uniqueName
String

Platform::String

winrt::hstring

The unique name.

busAttachment
AllJoynBusAttachment

The bus attachment supporting the session.

sessionPort
UInt16

unsigned short

uint16_t

The port used to connect to the session.

language
Language

The language to return the descriptive data in.

Returns

An object containing About data for the session in the set language.

Attributes

Windows requirements

App capabilities
allJoyn

See also

Applies to

GetDataBySessionPortAsync(String, AllJoynBusAttachment, UInt16)

Important

The types in the Windows.Devices.AllJoyn namespace are deprecated, and might not be available in future versions of Windows. AllJoyn—sponsored by AllSeen Alliance—was an open-source discovery and communication protocol for Internet of Things (IoT) scenarios such as turning lights on and off, and reading temperatures. For alternatives, such as IoTivity Lite and IoTivity, refer to the iotivity.org website.

Gets the About data for a session.

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)

Parameters

uniqueName
String

Platform::String

winrt::hstring

The unique name.

busAttachment
AllJoynBusAttachment

The bus attachment supporting the session.

sessionPort
UInt16

unsigned short

uint16_t

The port used to connect to the session.

Returns

An object containing About data for the session.

Attributes

Windows requirements

App capabilities
allJoyn

See also

Applies to