共用方式為


AllJoynBusAttachment.PingAsync(String) 方法

定義

重要

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

以非同步方式 Ping 指定的連線。

public:
 virtual IAsyncOperation<int> ^ PingAsync(Platform::String ^ uniqueName) = PingAsync;
/// [Windows.Foundation.Metadata.RemoteAsync]
IAsyncOperation<int> PingAsync(winrt::hstring const& uniqueName);
/// [Windows.Foundation.Metadata.RemoteAsync]
/// [Windows.Foundation.Metadata.Deprecated("AllJoynBusAttachment has been deprecated.  For more info, see MSDN.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 786432, "Windows.Foundation.UniversalApiContract")]
IAsyncOperation<int> PingAsync(winrt::hstring const& uniqueName);
[Windows.Foundation.Metadata.RemoteAsync]
public IAsyncOperation<int> PingAsync(string uniqueName);
[Windows.Foundation.Metadata.RemoteAsync]
[Windows.Foundation.Metadata.Deprecated("AllJoynBusAttachment has been deprecated.  For more info, see MSDN.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 786432, "Windows.Foundation.UniversalApiContract")]
public IAsyncOperation<int> PingAsync(string uniqueName);
function pingAsync(uniqueName)
Public Function PingAsync (uniqueName As String) As IAsyncOperation(Of Integer)

參數

uniqueName
String

Platform::String

winrt::hstring

與連接相關聯的唯一名稱。

傳回

AllJoyn 狀態碼。

屬性

Windows 需求

應用程式功能
allJoyn

適用於