AllJoynAboutDataView.GetDataBySessionPortAsync 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
GetDataBySessionPortAsync(String, AllJoynBusAttachment, UInt16, Language) |
重要 Windows.Devices.AllJoyn命名空間中的類型已被取代,未來版本的 Windows 可能無法使用。 AllJoyn是 AllSeen 聯盟贊助的開放原始碼探索和通訊協定,適用于物聯網 (IoT) 案例,例如開啟和關閉燈光,以及讀取溫度。 如需 IoTivity Lite 和 IoTivity等替代方案,請參閱 iotivity.org 網站。 取得特定語言之會話的 About 資料。 |
GetDataBySessionPortAsync(String, AllJoynBusAttachment, UInt16) |
重要 Windows.Devices.AllJoyn命名空間中的類型已被取代,未來版本的 Windows 可能無法使用。 AllJoyn是 AllSeen 聯盟贊助的開放原始碼探索和通訊協定,適用于物聯網 (IoT) 案例,例如開啟和關閉燈光,以及讀取溫度。 如需 IoTivity Lite 和 IoTivity等替代方案,請參閱 iotivity.org 網站。 取得會話的 About 資料。 |
GetDataBySessionPortAsync(String, AllJoynBusAttachment, UInt16, Language)
重要
Windows.Devices.AllJoyn命名空間中的類型已被取代,未來版本的 Windows 可能無法使用。 AllJoyn是 AllSeen 聯盟贊助的開放原始碼探索和通訊協定,適用于物聯網 (IoT) 案例,例如開啟和關閉燈光,以及讀取溫度。 如需 IoTivity Lite 和 IoTivity等替代方案,請參閱 iotivity.org 網站。
取得特定語言之會話的 About 資料。
public:
static IAsyncOperation<AllJoynAboutDataView ^> ^ GetDataBySessionPortAsync(Platform::String ^ uniqueName, AllJoynBusAttachment ^ busAttachment, unsigned short sessionPort, Language ^ language);
/// [Windows.Foundation.Metadata.Overload("GetDataBySessionPortWithLanguageAsync")]
/// [Windows.Foundation.Metadata.RemoteAsync]
static IAsyncOperation<AllJoynAboutDataView> GetDataBySessionPortAsync(winrt::hstring const& uniqueName, AllJoynBusAttachment const& busAttachment, uint16_t const& sessionPort, Language const& language);
/// [Windows.Foundation.Metadata.Overload("GetDataBySessionPortWithLanguageAsync")]
/// [Windows.Foundation.Metadata.RemoteAsync]
/// [Windows.Foundation.Metadata.Deprecated("AllJoynAboutDataView has been deprecated. For more info, see MSDN.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 786432, "Windows.Foundation.UniversalApiContract")]
static IAsyncOperation<AllJoynAboutDataView> GetDataBySessionPortAsync(winrt::hstring const& uniqueName, AllJoynBusAttachment const& busAttachment, uint16_t const& sessionPort, Language const& language);
[Windows.Foundation.Metadata.Overload("GetDataBySessionPortWithLanguageAsync")]
[Windows.Foundation.Metadata.RemoteAsync]
public static IAsyncOperation<AllJoynAboutDataView> GetDataBySessionPortAsync(string uniqueName, AllJoynBusAttachment busAttachment, ushort sessionPort, Language language);
[Windows.Foundation.Metadata.Overload("GetDataBySessionPortWithLanguageAsync")]
[Windows.Foundation.Metadata.RemoteAsync]
[Windows.Foundation.Metadata.Deprecated("AllJoynAboutDataView has been deprecated. For more info, see MSDN.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 786432, "Windows.Foundation.UniversalApiContract")]
public static IAsyncOperation<AllJoynAboutDataView> GetDataBySessionPortAsync(string uniqueName, AllJoynBusAttachment busAttachment, ushort sessionPort, Language language);
function getDataBySessionPortAsync(uniqueName, busAttachment, sessionPort, language)
Public Shared Function GetDataBySessionPortAsync (uniqueName As String, busAttachment As AllJoynBusAttachment, sessionPort As UShort, language As Language) As IAsyncOperation(Of AllJoynAboutDataView)
參數
- uniqueName
-
String
Platform::String
winrt::hstring
唯一名稱。
- busAttachment
- AllJoynBusAttachment
支援會話的匯流排附件。
- sessionPort
-
UInt16
unsigned short
uint16_t
用來連線到會話的埠。
- language
- Language
要傳回描述性資料的語言。
傳回
物件,包含設定語言中會話的 About 資料。
- 屬性
Windows 需求
應用程式功能 |
allJoyn
|
另請參閱
適用於
GetDataBySessionPortAsync(String, AllJoynBusAttachment, UInt16)
重要
Windows.Devices.AllJoyn命名空間中的類型已被取代,未來版本的 Windows 可能無法使用。 AllJoyn是 AllSeen 聯盟贊助的開放原始碼探索和通訊協定,適用于物聯網 (IoT) 案例,例如開啟和關閉燈光,以及讀取溫度。 如需 IoTivity Lite 和 IoTivity等替代方案,請參閱 iotivity.org 網站。
取得會話的 About 資料。
public:
static IAsyncOperation<AllJoynAboutDataView ^> ^ GetDataBySessionPortAsync(Platform::String ^ uniqueName, AllJoynBusAttachment ^ busAttachment, unsigned short sessionPort);
/// [Windows.Foundation.Metadata.Overload("GetDataBySessionPortAsync")]
/// [Windows.Foundation.Metadata.RemoteAsync]
static IAsyncOperation<AllJoynAboutDataView> GetDataBySessionPortAsync(winrt::hstring const& uniqueName, AllJoynBusAttachment const& busAttachment, uint16_t const& sessionPort);
/// [Windows.Foundation.Metadata.Overload("GetDataBySessionPortAsync")]
/// [Windows.Foundation.Metadata.RemoteAsync]
/// [Windows.Foundation.Metadata.Deprecated("AllJoynAboutDataView has been deprecated. For more info, see MSDN.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 786432, "Windows.Foundation.UniversalApiContract")]
static IAsyncOperation<AllJoynAboutDataView> GetDataBySessionPortAsync(winrt::hstring const& uniqueName, AllJoynBusAttachment const& busAttachment, uint16_t const& sessionPort);
[Windows.Foundation.Metadata.Overload("GetDataBySessionPortAsync")]
[Windows.Foundation.Metadata.RemoteAsync]
public static IAsyncOperation<AllJoynAboutDataView> GetDataBySessionPortAsync(string uniqueName, AllJoynBusAttachment busAttachment, ushort sessionPort);
[Windows.Foundation.Metadata.Overload("GetDataBySessionPortAsync")]
[Windows.Foundation.Metadata.RemoteAsync]
[Windows.Foundation.Metadata.Deprecated("AllJoynAboutDataView has been deprecated. For more info, see MSDN.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 786432, "Windows.Foundation.UniversalApiContract")]
public static IAsyncOperation<AllJoynAboutDataView> GetDataBySessionPortAsync(string uniqueName, AllJoynBusAttachment busAttachment, ushort sessionPort);
function getDataBySessionPortAsync(uniqueName, busAttachment, sessionPort)
Public Shared Function GetDataBySessionPortAsync (uniqueName As String, busAttachment As AllJoynBusAttachment, sessionPort As UShort) As IAsyncOperation(Of AllJoynAboutDataView)
參數
- uniqueName
-
String
Platform::String
winrt::hstring
唯一名稱。
- busAttachment
- AllJoynBusAttachment
支援會話的匯流排附件。
- sessionPort
-
UInt16
unsigned short
uint16_t
用來連線到會話的埠。
傳回
物件,包含會話的 About 資料。
- 屬性
Windows 需求
應用程式功能 |
allJoyn
|