DevicePortalConnection.RequestReceived Event
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Raised when a request has been received through the Windows Device Portal server. A device portal plugin app must implement a handler for this event.
// Register
event_token RequestReceived(TypedEventHandler<DevicePortalConnection, DevicePortalConnectionRequestReceivedEventArgs const&> const& handler) const;
// Revoke with event_token
void RequestReceived(event_token const* cookie) const;
// Revoke with event_revoker
DevicePortalConnection::RequestReceived_revoker RequestReceived(auto_revoke_t, TypedEventHandler<DevicePortalConnection, DevicePortalConnectionRequestReceivedEventArgs const&> const& handler) const;
public event TypedEventHandler<DevicePortalConnection,DevicePortalConnectionRequestReceivedEventArgs> RequestReceived;
function onRequestReceived(eventArgs) { /* Your code */ }
devicePortalConnection.addEventListener("requestreceived", onRequestReceived);
devicePortalConnection.removeEventListener("requestreceived", onRequestReceived);
- or -
devicePortalConnection.onrequestreceived = onRequestReceived;
Public Custom Event RequestReceived As TypedEventHandler(Of DevicePortalConnection, DevicePortalConnectionRequestReceivedEventArgs)