共用方式為


AllJoynSession.GetFromServiceInfoAsync 方法

定義

多載

GetFromServiceInfoAsync(AllJoynServiceInfo)

重要

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

根據指定的服務資訊,取得與產生者的會話。

GetFromServiceInfoAsync(AllJoynServiceInfo, AllJoynBusAttachment)

重要

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

根據指定的服務資訊和匯流排附件,取得產生者的會話。

GetFromServiceInfoAsync(AllJoynServiceInfo)

重要

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

根據指定的服務資訊,取得與產生者的會話。

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)

參數

serviceInfo
AllJoynServiceInfo

要取得正確會話的服務資訊。

傳回

根據服務資訊,AllJoyn 會話的 AllJoyn 物件。

屬性

Windows 需求

應用程式功能
allJoyn

另請參閱

適用於

GetFromServiceInfoAsync(AllJoynServiceInfo, AllJoynBusAttachment)

重要

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

根據指定的服務資訊和匯流排附件,取得產生者的會話。

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)

參數

serviceInfo
AllJoynServiceInfo

要取得正確會話的服務資訊。

busAttachment
AllJoynBusAttachment

用來識別 AllJoyn 會話的匯流排附件。 如果未指定,則會將其設定為 AllJoynBusAttachment.GetDefault的結果。

傳回

根據服務資訊,AllJoyn 會話的 AllJoyn 物件。

屬性

Windows 需求

應用程式功能
allJoyn

另請參閱

適用於