AppServiceConnection.RequestReceived 事件
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
当消息从应用服务连接的其他终结点到达时发生。
// Register
event_token RequestReceived(TypedEventHandler<AppServiceConnection, AppServiceRequestReceivedEventArgs const&> const& handler) const;
// Revoke with event_token
void RequestReceived(event_token const* cookie) const;
// Revoke with event_revoker
AppServiceConnection::RequestReceived_revoker RequestReceived(auto_revoke_t, TypedEventHandler<AppServiceConnection, AppServiceRequestReceivedEventArgs const&> const& handler) const;
public event TypedEventHandler<AppServiceConnection,AppServiceRequestReceivedEventArgs> RequestReceived;
function onRequestReceived(eventArgs) { /* Your code */ }
appServiceConnection.addEventListener("requestreceived", onRequestReceived);
appServiceConnection.removeEventListener("requestreceived", onRequestReceived);
- or -
appServiceConnection.onrequestreceived = onRequestReceived;
Public Custom Event RequestReceived As TypedEventHandler(Of AppServiceConnection, AppServiceRequestReceivedEventArgs)
事件类型
示例
请参阅 创建和使用应用服务中的代码示例。