Freigeben über


AllJoynSession.GetFromServiceInfoAsync Methode

Definition

Überlädt

GetFromServiceInfoAsync(AllJoynServiceInfo)

Wichtig

Die Typen im Windows.Devices.AllJoyn-Namespace sind veraltet und in zukünftigen Versionen von Windows möglicherweise nicht verfügbar. AllJoyn – gesponsert von AllSeen Alliance – war ein Open-Source-Ermittlungs- und Kommunikationsprotokoll für IoT-Szenarien (Internet of Things), z. B. das Einschalten und Deaktivieren von Lichtern und lesetemperaturen. Alternativen wie IoTivity Lite und IoTivity finden Sie auf der website iotivity.org .

Ruft eine Sitzung mit dem Producer basierend auf den angegebenen Dienstinformationen ab.

GetFromServiceInfoAsync(AllJoynServiceInfo, AllJoynBusAttachment)

Wichtig

Die Typen im Windows.Devices.AllJoyn-Namespace sind veraltet und in zukünftigen Versionen von Windows möglicherweise nicht verfügbar. AllJoyn – gesponsert von AllSeen Alliance – war ein Open-Source-Ermittlungs- und Kommunikationsprotokoll für IoT-Szenarien (Internet of Things), z. B. das Einschalten und Deaktivieren von Lichtern und lesetemperaturen. Alternativen wie IoTivity Lite und IoTivity finden Sie auf der website iotivity.org .

Ruft eine Sitzung mit dem Producer basierend auf den angegebenen Dienstinformationen und der angegebenen Busanlage ab.

GetFromServiceInfoAsync(AllJoynServiceInfo)

Wichtig

Die Typen im Windows.Devices.AllJoyn-Namespace sind veraltet und in zukünftigen Versionen von Windows möglicherweise nicht verfügbar. AllJoyn – gesponsert von AllSeen Alliance – war ein Open-Source-Ermittlungs- und Kommunikationsprotokoll für IoT-Szenarien (Internet of Things), z. B. das Einschalten und Deaktivieren von Lichtern und lesetemperaturen. Alternativen wie IoTivity Lite und IoTivity finden Sie auf der website iotivity.org .

Ruft eine Sitzung mit dem Producer basierend auf den angegebenen Dienstinformationen ab.

public:
 static IAsyncOperation<AllJoynSession ^> ^ GetFromServiceInfoAsync(AllJoynServiceInfo ^ serviceInfo);
/// [Windows.Foundation.Metadata.Overload("GetFromServiceInfoAsync")]
/// [Windows.Foundation.Metadata.RemoteAsync]
 static IAsyncOperation<AllJoynSession> GetFromServiceInfoAsync(AllJoynServiceInfo const& serviceInfo);
/// [Windows.Foundation.Metadata.Overload("GetFromServiceInfoAsync")]
/// [Windows.Foundation.Metadata.RemoteAsync]
/// [Windows.Foundation.Metadata.Deprecated("AllJoynSession has been deprecated.  For more info, see MSDN.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 786432, "Windows.Foundation.UniversalApiContract")]
 static IAsyncOperation<AllJoynSession> GetFromServiceInfoAsync(AllJoynServiceInfo const& serviceInfo);
[Windows.Foundation.Metadata.Overload("GetFromServiceInfoAsync")]
[Windows.Foundation.Metadata.RemoteAsync]
public static IAsyncOperation<AllJoynSession> GetFromServiceInfoAsync(AllJoynServiceInfo serviceInfo);
[Windows.Foundation.Metadata.Overload("GetFromServiceInfoAsync")]
[Windows.Foundation.Metadata.RemoteAsync]
[Windows.Foundation.Metadata.Deprecated("AllJoynSession has been deprecated.  For more info, see MSDN.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 786432, "Windows.Foundation.UniversalApiContract")]
public static IAsyncOperation<AllJoynSession> GetFromServiceInfoAsync(AllJoynServiceInfo serviceInfo);
function getFromServiceInfoAsync(serviceInfo)
Public Shared Function GetFromServiceInfoAsync (serviceInfo As AllJoynServiceInfo) As IAsyncOperation(Of AllJoynSession)

Parameter

serviceInfo
AllJoynServiceInfo

Die Dienstinformationen zum Abrufen der richtigen Sitzung.

Gibt zurück

Ein AllJoyn-Objekt für die AllJoyn-Sitzung basierend auf den Dienstinformationen.

Attribute

Windows-Anforderungen

App-Funktionen
allJoyn

Weitere Informationen

Gilt für:

GetFromServiceInfoAsync(AllJoynServiceInfo, AllJoynBusAttachment)

Wichtig

Die Typen im Windows.Devices.AllJoyn-Namespace sind veraltet und in zukünftigen Versionen von Windows möglicherweise nicht verfügbar. AllJoyn – gesponsert von AllSeen Alliance – war ein Open-Source-Ermittlungs- und Kommunikationsprotokoll für IoT-Szenarien (Internet of Things), z. B. das Einschalten und Deaktivieren von Lichtern und lesetemperaturen. Alternativen wie IoTivity Lite und IoTivity finden Sie auf der website iotivity.org .

Ruft eine Sitzung mit dem Producer basierend auf den angegebenen Dienstinformationen und der angegebenen Busanlage ab.

public:
 static IAsyncOperation<AllJoynSession ^> ^ GetFromServiceInfoAsync(AllJoynServiceInfo ^ serviceInfo, AllJoynBusAttachment ^ busAttachment);
/// [Windows.Foundation.Metadata.Overload("GetFromServiceInfoAndBusAttachmentAsync")]
/// [Windows.Foundation.Metadata.RemoteAsync]
 static IAsyncOperation<AllJoynSession> GetFromServiceInfoAsync(AllJoynServiceInfo const& serviceInfo, AllJoynBusAttachment const& busAttachment);
/// [Windows.Foundation.Metadata.Overload("GetFromServiceInfoAndBusAttachmentAsync")]
/// [Windows.Foundation.Metadata.RemoteAsync]
/// [Windows.Foundation.Metadata.Deprecated("AllJoynSession has been deprecated.  For more info, see MSDN.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 786432, "Windows.Foundation.UniversalApiContract")]
 static IAsyncOperation<AllJoynSession> GetFromServiceInfoAsync(AllJoynServiceInfo const& serviceInfo, AllJoynBusAttachment const& busAttachment);
[Windows.Foundation.Metadata.Overload("GetFromServiceInfoAndBusAttachmentAsync")]
[Windows.Foundation.Metadata.RemoteAsync]
public static IAsyncOperation<AllJoynSession> GetFromServiceInfoAsync(AllJoynServiceInfo serviceInfo, AllJoynBusAttachment busAttachment);
[Windows.Foundation.Metadata.Overload("GetFromServiceInfoAndBusAttachmentAsync")]
[Windows.Foundation.Metadata.RemoteAsync]
[Windows.Foundation.Metadata.Deprecated("AllJoynSession has been deprecated.  For more info, see MSDN.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 786432, "Windows.Foundation.UniversalApiContract")]
public static IAsyncOperation<AllJoynSession> GetFromServiceInfoAsync(AllJoynServiceInfo serviceInfo, AllJoynBusAttachment busAttachment);
function getFromServiceInfoAsync(serviceInfo, busAttachment)
Public Shared Function GetFromServiceInfoAsync (serviceInfo As AllJoynServiceInfo, busAttachment As AllJoynBusAttachment) As IAsyncOperation(Of AllJoynSession)

Parameter

serviceInfo
AllJoynServiceInfo

Die Dienstinformationen zum Abrufen der richtigen Sitzung.

busAttachment
AllJoynBusAttachment

Die Busanlage, um die AllJoyn-Sitzung zu identifizieren. Wenn nicht angegeben, wird er auf das Ergebnis von AllJoynBusAttachment.GetDefault festgelegt.

Gibt zurück

Ein AllJoyn-Objekt für die AllJoyn-Sitzung basierend auf den Dienstinformationen.

Attribute

Windows-Anforderungen

App-Funktionen
allJoyn

Weitere Informationen

Gilt für: