AllJoynBusAttachment.GetWatcher(IIterable<String>) メソッド

定義

重要

Windows.Devices.AllJoyn 名前空間の型は非推奨であり、今後のバージョンの Windows では使用できない可能性があります。 AllJoyn は、AllSeen Alliance によって後援され、ライトのオンとオフ、温度の読み取りなどのモノのインターネット (IoT) シナリオ向けのオープンソースの検出および通信プロトコルでした。 IoTivity LiteIoTivity などの代替手段については、iotivity.org Web サイトを参照してください。

インターフェイスのセット全体を実装する AllJoyn バス オブジェクトを生成する DeviceWatcher を作成します。

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

適用対象