共用方式為


ShareWindowCommandSource.CommandInvoked 事件

定義

Windows Shell 引發的事件,可讓通訊應用程式有機會實際啟動或停止共用特定視窗。

// Register
event_token CommandInvoked(TypedEventHandler<ShareWindowCommandSource, ShareWindowCommandEventArgs const&> const& handler) const;

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

// Revoke with event_revoker
ShareWindowCommandSource::CommandInvoked_revoker CommandInvoked(auto_revoke_t, TypedEventHandler<ShareWindowCommandSource, ShareWindowCommandEventArgs const&> const& handler) const;
public event TypedEventHandler<ShareWindowCommandSource,ShareWindowCommandEventArgs> CommandInvoked;
function onCommandInvoked(eventArgs) { /* Your code */ }
shareWindowCommandSource.addEventListener("commandinvoked", onCommandInvoked);
shareWindowCommandSource.removeEventListener("commandinvoked", onCommandInvoked);
- or -
shareWindowCommandSource.oncommandinvoked = onCommandInvoked;
Public Custom Event CommandInvoked As TypedEventHandler(Of ShareWindowCommandSource, ShareWindowCommandEventArgs) 

事件類型

適用於

另請參閱