共用方式為


MiracastReceiver.StatusChanged 事件

定義

當 MiracastReceiver的狀態變更時引發的事件。

// Register
event_token StatusChanged(TypedEventHandler<MiracastReceiver, IInspectable const&> const& handler) const;

// Revoke with event_token
void StatusChanged(event_token const* cookie) const;

// Revoke with event_revoker
MiracastReceiver::StatusChanged_revoker StatusChanged(auto_revoke_t, TypedEventHandler<MiracastReceiver, IInspectable const&> const& handler) const;
public event TypedEventHandler<MiracastReceiver,object> StatusChanged;
function onStatusChanged(eventArgs) { /* Your code */ }
miracastReceiver.addEventListener("statuschanged", onStatusChanged);
miracastReceiver.removeEventListener("statuschanged", onStatusChanged);
- or -
miracastReceiver.onstatuschanged = onStatusChanged;
Public Custom Event StatusChanged As TypedEventHandler(Of MiracastReceiver, Object) 

事件類型

備註

使用 GetStatusGetStatusAsync 來擷取最新的狀態。

適用於

另請參閱