AllJoynSession.RemoveMemberAsync(String) 方法

定义

重要

Windows.Devices.AllJoyn 命名空间中的类型已弃用,将来的 Windows 版本中可能不可用。 AllJoyn(由 AllSeen 联盟赞助)是一种开源发现和通信协议,适用于物联网 (IoT) 方案,例如打开和关闭灯以及读取温度。 有关 IoTivity LiteIoTivity 等替代项,请参阅 iotivity.org 网站。

从会话中删除由输入 String 指定的成员。

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

参数

uniqueName
String

Platform::String

winrt::hstring

要从会话中删除的成员的名称。

返回

AllJoyn 状态代码。

属性

Windows 要求

应用功能
allJoyn

适用于