Share via


ShareWindowCommandSource.ReportCommandChanged Method

Definition

Indicates to the Windows Shell that the sharing state of your communications app has changed.

Call this method whenever your communications app's sharing state changes. If you successfully share a new window in a call or meeting, or you remove an already shared window (whether that's via your own UI, or triggered by a Windows Taskbar action), you must notify your ShareWindowCommandSource instance of that change by calling ReportCommandChanged.

The Shell will then flush any information it has received as part of any ShareWindowCommandSource.CommandRequested event, and will update its visible share commands to match the current state of your app.

public:
 virtual void ReportCommandChanged() = ReportCommandChanged;
void ReportCommandChanged();
public void ReportCommandChanged();
function reportCommandChanged()
Public Sub ReportCommandChanged ()

Applies to

See also