AllJoynServiceInfo(String, String, UInt16) Constructor

Definition

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.

Generates an AllJoynServiceInfo object that represents an advertising app. This object provides the unique bus name, object path and transport information.

public:
 AllJoynServiceInfo(Platform::String ^ uniqueName, Platform::String ^ objectPath, unsigned short sessionPort);
 AllJoynServiceInfo(winrt::hstring const& uniqueName, winrt::hstring const& objectPath, uint16_t const& sessionPort);
/// [Windows.Foundation.Metadata.Deprecated("AllJoynServiceInfo has been deprecated.  For more info, see MSDN.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 786432, "Windows.Foundation.UniversalApiContract")]
 AllJoynServiceInfo(winrt::hstring const& uniqueName, winrt::hstring const& objectPath, uint16_t const& sessionPort);
public AllJoynServiceInfo(string uniqueName, string objectPath, ushort sessionPort);
[Windows.Foundation.Metadata.Deprecated("AllJoynServiceInfo has been deprecated.  For more info, see MSDN.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 786432, "Windows.Foundation.UniversalApiContract")]
public AllJoynServiceInfo(string uniqueName, string objectPath, ushort sessionPort);
function AllJoynServiceInfo(uniqueName, objectPath, sessionPort)
Public Sub New (uniqueName As String, objectPath As String, sessionPort As UShort)

Parameters

uniqueName
String

Platform::String

winrt::hstring

The unique bus name.

objectPath
String

Platform::String

winrt::hstring

The object path.

sessionPort
UInt16

unsigned short

uint16_t

The port for this session.

Attributes

Windows requirements

App capabilities
allJoyn

Applies to