RcsManager.TransportListChanged 事件

定义

在将从 RcsManager.GetTransportsAsync 返回的 RcsTransport 实例列表中添加或删除一个或多个 RcsTransport 实例时发生。

// Register
static event_token TransportListChanged(EventHandler<IInspectable> const& handler) const;

// Revoke with event_token
static void TransportListChanged(event_token const* cookie) const;

// Revoke with event_revoker
static RcsManager::TransportListChanged_revoker TransportListChanged(auto_revoke_t, EventHandler<IInspectable> const& handler) const;
public static event System.EventHandler<object> TransportListChanged;
function onTransportListChanged(eventArgs) { /* Your code */ }
Windows.ApplicationModel.Chat.RcsManager.addEventListener("transportlistchanged", onTransportListChanged);
Windows.ApplicationModel.Chat.RcsManager.removeEventListener("transportlistchanged", onTransportListChanged);
- or -
Windows.ApplicationModel.Chat.RcsManager.ontransportlistchanged = onTransportListChanged;
Public Shared Custom Event TransportListChanged As EventHandler(Of Object) 

事件类型

Windows 要求

设备系列
Windows 10, version 1809 (在 10.0.17763.0 中引入)
API contract
Windows.Foundation.UniversalApiContract (在 v7.0 中引入)
应用功能
chat chatSystem smsSend

适用于