AllJoynServiceInfo.FromIdAsync(String) メソッド

定義

重要

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

デバイス列挙体によって取得された DeviceInformation ID をAllJoynServiceInfo オブジェクトに変換します。

public:
 static IAsyncOperation<AllJoynServiceInfo ^> ^ FromIdAsync(Platform::String ^ deviceId);
/// [Windows.Foundation.Metadata.RemoteAsync]
 static IAsyncOperation<AllJoynServiceInfo> FromIdAsync(winrt::hstring const& deviceId);
/// [Windows.Foundation.Metadata.RemoteAsync]
/// [Windows.Foundation.Metadata.Deprecated("AllJoynServiceInfo has been deprecated.  For more info, see MSDN.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 786432, "Windows.Foundation.UniversalApiContract")]
 static IAsyncOperation<AllJoynServiceInfo> FromIdAsync(winrt::hstring const& deviceId);
[Windows.Foundation.Metadata.RemoteAsync]
public static IAsyncOperation<AllJoynServiceInfo> FromIdAsync(string deviceId);
[Windows.Foundation.Metadata.RemoteAsync]
[Windows.Foundation.Metadata.Deprecated("AllJoynServiceInfo has been deprecated.  For more info, see MSDN.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 786432, "Windows.Foundation.UniversalApiContract")]
public static IAsyncOperation<AllJoynServiceInfo> FromIdAsync(string deviceId);
function fromIdAsync(deviceId)
Public Shared Function FromIdAsync (deviceId As String) As IAsyncOperation(Of AllJoynServiceInfo)

パラメーター

deviceId
String

Platform::String

winrt::hstring

取得した DeviceInformation ID

戻り値

ID に対応する AllJoynServiceInfo オブジェクト。 このオブジェクトは、リモート エンドポイントとのセッションを確立し、そこから About データを取得するために使用できます。

属性

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

適用対象