AllJoynBusAttachment.PingAsync(String) Methode
Definition
Wichtig
Einige Informationen beziehen sich auf Vorabversionen, die vor dem Release ggf. grundlegend überarbeitet werden. Microsoft übernimmt hinsichtlich der hier bereitgestellten Informationen keine Gewährleistungen, seien sie ausdrücklich oder konkludent.
Wichtig
Die Typen im Windows.Devices.AllJoyn-Namespace sind veraltet und in zukünftigen Versionen von Windows möglicherweise nicht verfügbar. AllJoyn – gesponsert von AllSeen Alliance – war ein Open-Source-Ermittlungs- und Kommunikationsprotokoll für IoT-Szenarien (Internet of Things), z. B. das Einschalten und Deaktivieren von Lichtern und lesetemperaturen. Alternativen wie IoTivity Lite und IoTivity finden Sie auf der website iotivity.org .
Pingt die angegebene Verbindung asynchron.
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)
Parameter
- uniqueName
-
String
Platform::String
winrt::hstring
Der eindeutige Name, der der Verbindung zugeordnet ist.
Gibt zurück
Ein AllJoyn-status Code.
- Attribute
Windows-Anforderungen
App-Funktionen |
allJoyn
|