DevicePortalConnectionClosedReason Enum
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
Device family |
Windows 10 Creators Update (introduced in 10.0.15063.0)
|
API contract |
Windows.Foundation.UniversalApiContract (introduced in v4.0)
|
Fields
NotAuthorized | 3 | The app is missing the appropriate capability to use a device portal. |
ProtocolError | 2 | The connection closed because of an unrecognized app service message. |
ResourceLimitsExceeded | 1 | Windows Devices Portal closed the connection because the resource limit was exceeded. |
ServiceTerminated | 5 | Windows Device Portal has shut down. |
Unknown | 0 | The connection closed for an unknown reason. |
UserNotPresent | 4 | The WTS active console user was missing. |