MiracastReceiverSession.ConnectionCreated Evento
Definizione
Importante
Alcune informazioni sono relative alla release non definitiva del prodotto, che potrebbe subire modifiche significative prima della release definitiva. Microsoft non riconosce alcuna garanzia, espressa o implicita, in merito alle informazioni qui fornite.
Evento generato quando viene ricevuto un nuovo oggetto MiracastReceiverConnection in ingresso.
// Register
event_token ConnectionCreated(TypedEventHandler<MiracastReceiverSession, MiracastReceiverConnectionCreatedEventArgs const&> const& handler) const;
// Revoke with event_token
void ConnectionCreated(event_token const* cookie) const;
// Revoke with event_revoker
MiracastReceiverSession::ConnectionCreated_revoker ConnectionCreated(auto_revoke_t, TypedEventHandler<MiracastReceiverSession, MiracastReceiverConnectionCreatedEventArgs const&> const& handler) const;
public event TypedEventHandler<MiracastReceiverSession,MiracastReceiverConnectionCreatedEventArgs> ConnectionCreated;
function onConnectionCreated(eventArgs) { /* Your code */ }
miracastReceiverSession.addEventListener("connectioncreated", onConnectionCreated);
miracastReceiverSession.removeEventListener("connectioncreated", onConnectionCreated);
- or -
miracastReceiverSession.onconnectioncreated = onConnectionCreated;
Public Custom Event ConnectionCreated As TypedEventHandler(Of MiracastReceiverSession, MiracastReceiverConnectionCreatedEventArgs)
Tipo evento
Commenti
L'app deve sottoscrivere questo evento prima di richiamare il metodo MiracastReceiverSession.Start o MiracastReceiverSession.StartAsync .