AppServiceConnection.RequestReceived Kejadian
Definisi
Penting
Beberapa informasi terkait produk prarilis yang dapat diubah secara signifikan sebelum dirilis. Microsoft tidak memberikan jaminan, tersirat maupun tersurat, sehubungan dengan informasi yang diberikan di sini.
Terjadi ketika pesan tiba dari titik akhir lain dari koneksi layanan aplikasi.
// 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)
Jenis Acara
Contoh
Lihat contoh kode di Membuat dan menggunakan layanan aplikasi.