共用方式為


AllJoynBusAttachment.GetWatcher(IIterable<String>) 方法

定義

重要

Windows.Devices.AllJoyn命名空間中的類型已被取代,未來版本的 Windows 可能無法使用。 AllJoyn是 AllSeen 聯盟贊助的開放原始碼探索和通訊協定,適用于物聯網 (IoT) 案例,例如開啟和關閉燈光,以及讀取溫度。 如需 IoTivity LiteIoTivity等替代方案,請參閱 iotivity.org 網站。

建立 DeviceWatcher ,以產生實作整個介面集的 AllJoyn 匯流排物件。

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

參數

requiredInterfaces

IIterable<String>

IEnumerable<String>

IIterable<Platform::String>

IIterable<winrt::hstring>

匯流排物件必須實作的必要介面。 這可以是字串清單

傳回

匯流排物件的裝置監看員。

屬性

Windows 需求

裝置系列
Windows 10 Anniversary Edition (已於 10.0.14393.0 - for Xbox, see UWP features that aren't yet supported on Xbox 引進)
API contract
Windows.Foundation.UniversalApiContract (已於 v3.0 引進)
應用程式功能
allJoyn

適用於