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

适用于