Share via


MiracastReceiverSessionStartStatus Enum

Definition

The status of a Start or StartAsync operation.

public enum class MiracastReceiverSessionStartStatus
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 524288)]
enum class MiracastReceiverSessionStartStatus
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 524288)]
public enum MiracastReceiverSessionStartStatus
var value = Windows.Media.Miracast.MiracastReceiverSessionStartStatus.success
Public Enum MiracastReceiverSessionStartStatus
Inheritance
MiracastReceiverSessionStartStatus
Attributes

Windows requirements

Device family
Windows 10, version 1903 (introduced in 10.0.18362.0)
API contract
Windows.Foundation.UniversalApiContract (introduced in v8.0)

Fields

Name Value Description
Success 0

The Miracast Receiver started successfully.

UnknownFailure 1

The Miracast Receiver Session could not be started due an unknown error.

MiracastNotSupported 2

The Miracast Receiver Session cannot start because Miracast is not supported on the current device.

AccessDenied 3

The app is not allowed to start a Miracast Receiver Session.

Remarks

Store apps must declare the PrivateNetworkClientServer capability in their manifest in order to be allowed to start a Miracast Receiver Session. If the capability is missing, it results in an AccessDenied error.

Use MiracastReceiverStatus.ListeningStatus to determine if the Miracast Receiver is actually listening for incoming connections, as starting a MiracastReceiverSession does not guarantee that the Miracast Receiver is listening for connections.

Applies to

See also