Share via


DevicePortalConnectionClosedReason Enum

Definition

Contains values that explain why a device portal connection was closed.

public enum class DevicePortalConnectionClosedReason
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 262144)]
enum class DevicePortalConnectionClosedReason
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 262144)]
public enum DevicePortalConnectionClosedReason
var value = Windows.System.Diagnostics.DevicePortal.DevicePortalConnectionClosedReason.unknown
Public Enum DevicePortalConnectionClosedReason
Inheritance
DevicePortalConnectionClosedReason
Attributes

Windows requirements

Requirements Description
Device family
Windows 10 Creators Update (introduced in 10.0.15063.0)
API contract
Windows.Foundation.UniversalApiContract (introduced in v4.0)

Fields

Name Value Description
Unknown 0

The connection closed for an unknown reason.

ResourceLimitsExceeded 1

Windows Devices Portal closed the connection because the resource limit was exceeded.

ProtocolError 2

The connection closed because of an unrecognized app service message.

NotAuthorized 3

The app is missing the appropriate capability to use a device portal.

UserNotPresent 4

The WTS active console user was missing.

ServiceTerminated 5

Windows Device Portal has shut down.

Applies to