AllJoynServiceInfo 類別

定義

重要

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

公開廣告應用程式的唯一名稱和傳輸資訊。

public ref class AllJoynServiceInfo sealed
/// [Windows.Foundation.Metadata.Activatable(Windows.Devices.AllJoyn.IAllJoynServiceInfoFactory, 65536, Windows.Foundation.UniversalApiContract)]
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
class AllJoynServiceInfo final
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Activatable(Windows.Devices.AllJoyn.IAllJoynServiceInfoFactory, 65536, "Windows.Foundation.UniversalApiContract")]
class AllJoynServiceInfo final
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Activatable(Windows.Devices.AllJoyn.IAllJoynServiceInfoFactory, 65536, "Windows.Foundation.UniversalApiContract")]
/// [Windows.Foundation.Metadata.Deprecated("AllJoynServiceInfo has been deprecated.  For more info, see MSDN.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 786432, "Windows.Foundation.UniversalApiContract")]
class AllJoynServiceInfo final
[Windows.Foundation.Metadata.Activatable(typeof(Windows.Devices.AllJoyn.IAllJoynServiceInfoFactory), 65536, typeof(Windows.Foundation.UniversalApiContract))]
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
public sealed class AllJoynServiceInfo
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Activatable(typeof(Windows.Devices.AllJoyn.IAllJoynServiceInfoFactory), 65536, "Windows.Foundation.UniversalApiContract")]
public sealed class AllJoynServiceInfo
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Activatable(typeof(Windows.Devices.AllJoyn.IAllJoynServiceInfoFactory), 65536, "Windows.Foundation.UniversalApiContract")]
[Windows.Foundation.Metadata.Deprecated("AllJoynServiceInfo has been deprecated.  For more info, see MSDN.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 786432, "Windows.Foundation.UniversalApiContract")]
public sealed class AllJoynServiceInfo
function AllJoynServiceInfo(uniqueName, objectPath, sessionPort)
Public NotInheritable Class AllJoynServiceInfo
繼承
Object Platform::Object IInspectable AllJoynServiceInfo
屬性

Windows 需求

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

備註

版本歷程記錄

Windows 版本 SDK 版本 新增值
1607 14393 FromIdAsync

建構函式

AllJoynServiceInfo(String, String, UInt16)

重要

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

產生代表廣告應用程式的 AllJoynServiceInfo 物件。 此物件提供唯一的匯流排名稱、物件路徑和傳輸資訊。

屬性

ObjectPath

重要

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

服務物件的路徑。 此路徑用來比對連線至會話的服務物件通訊。

SessionPort

重要

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

用來連線到會話的埠。

UniqueName

重要

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

與廣告應用程式相關聯的唯一總線名稱。

方法

FromIdAsync(String)

重要

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

將裝置列舉所取得的 DeviceInformation 識別碼 轉換成 AllJoynServiceInfo 物件。

適用於