MiracastReceiverSession.ConnectionCreated 事件
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
收到新的傳入 MiracastReceiverConnection 時引發的事件。
// 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)
事件類型
備註
應用程式必須在叫用 MiracastReceiverSession.Start 或 MiracastReceiverSession.StartAsync 方法之前訂閱此事件。