Dela via


ShareWindowCommand Enum

Definition

Defines constants that specify a window sharing command.

public enum class ShareWindowCommand
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 851968)]
enum class ShareWindowCommand
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 851968)]
public enum ShareWindowCommand
var value = Windows.UI.Shell.ShareWindowCommand.none
Public Enum ShareWindowCommand
Inheritance
ShareWindowCommand
Attributes

Windows requirements

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

Fields

Name Value Description
None 0

Specifies that no command is being indicated.

StartSharing 1

Specifies a start sharing command.

For single-window sharing scenarios (that is, client applications that are capable of sharing only one window from one machine at a time), you can use the StartSharing command as a Swap command to swap to another window or screen if some other window or screen is already being shared from that machine.

StopSharing 2

Specifies a stop sharing command.

Applies to

See also