Share via


AllJoynBusAttachment.GetWatcher(IIterable<String>) Method

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.

Creates a DeviceWatcher that yields AllJoyn bus objects that implement the entire set of interfaces.

public:
 static DeviceWatcher ^ GetWatcher(IIterable<Platform::String ^> ^ requiredInterfaces);
 static DeviceWatcher GetWatcher(IIterable<winrt::hstring> const& requiredInterfaces);
/// [Windows.Foundation.Metadata.Deprecated("AllJoynBusAttachment has been deprecated.  For more info, see MSDN.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 786432, "Windows.Foundation.UniversalApiContract")]
 static DeviceWatcher GetWatcher(IIterable<winrt::hstring> const& requiredInterfaces);
public static DeviceWatcher GetWatcher(IEnumerable<string> requiredInterfaces);
[Windows.Foundation.Metadata.Deprecated("AllJoynBusAttachment has been deprecated.  For more info, see MSDN.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 786432, "Windows.Foundation.UniversalApiContract")]
public static DeviceWatcher GetWatcher(IEnumerable<string> requiredInterfaces);
function getWatcher(requiredInterfaces)
Public Shared Function GetWatcher (requiredInterfaces As IEnumerable(Of String)) As DeviceWatcher

Parameters

requiredInterfaces

IIterable<String>

IEnumerable<String>

IIterable<Platform::String>

IIterable<winrt::hstring>

The required interfaces that must be implemented by the bus objects. This can be a List of String.

Returns

The device watcher for the bus objects.

Attributes

Windows requirements

Device family
Windows 10 Anniversary Edition (introduced in 10.0.14393.0 - for Xbox, see UWP features that aren't yet supported on Xbox)
API contract
Windows.Foundation.UniversalApiContract (introduced in v3.0)
App capabilities
allJoyn

Applies to