Share via


ShareWindowCommandEventArgs Class

Definition

Contains event arguments passed when the ShareWindowCommandSource.CommandRequested and ShareWindowCommandSource.CommandInvoked events are raised.

public ref class ShareWindowCommandEventArgs sealed
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 851968)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
class ShareWindowCommandEventArgs final
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 851968)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
public sealed class ShareWindowCommandEventArgs
Public NotInheritable Class ShareWindowCommandEventArgs
Inheritance
Object Platform::Object IInspectable ShareWindowCommandEventArgs
Attributes

Windows requirements

Device family
Windows 11 (introduced in 10.0.22000.0)
API contract
Windows.Foundation.UniversalApiContract (introduced in v14.0)

Remarks

IShareWindowCommandEventArgsInterop is a native interoperation interface that allows getting a window identifier (a window handle) from a ShareWindowCommandEventArgs object.

Properties

Command

Gets or sets the window sharing command.

WindowId

Gets or sets the window identifier associated with the window sharing command. Your communications app can use this identifier to capture window contents, and share in an app-specific way.

Applies to

See also