Share via


AllJoynSessionLostReason Enum

Definition

Important

The types in the Windows.Devices.AllJoyn namespace are deprecated, and might not be available in future versions of Windows. AllJoyn—sponsored by AllSeen Alliance—was an open-source discovery and communication protocol for Internet of Things (IoT) scenarios such as turning lights on and off, and reading temperatures. For alternatives, such as IoTivity Lite and IoTivity, refer to the iotivity.org website.

Defines values used by AllJoynSessionLostEventArgs to indicate the reason for a lost session.

public enum class AllJoynSessionLostReason
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
enum class AllJoynSessionLostReason
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
/// [Windows.Foundation.Metadata.Deprecated("AllJoynSessionLostReason has been deprecated.  For more info, see MSDN.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 786432, "Windows.Foundation.UniversalApiContract")]
enum class AllJoynSessionLostReason
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
public enum AllJoynSessionLostReason
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.Deprecated("AllJoynSessionLostReason has been deprecated.  For more info, see MSDN.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 786432, "Windows.Foundation.UniversalApiContract")]
public enum AllJoynSessionLostReason
var value = Windows.Devices.AllJoyn.AllJoynSessionLostReason.none
Public Enum AllJoynSessionLostReason
Inheritance
AllJoynSessionLostReason
Attributes

Windows requirements

Device family
Windows 10 (introduced in 10.0.10240.0 - for Xbox, see UWP features that aren't yet supported on Xbox)
API contract
Windows.Foundation.UniversalApiContract (introduced in v1.0)
App capabilities
allJoyn

Fields

Name Value Description
None 0

No reason indicated.

ProducerLeftSession 1

The Producer left the session.

ProducerClosedAbruptly 2

The Producer closed the session unexpectedly.

RemovedByProducer 3

The Consumer was removed from the session by the Producer.

LinkTimeout 4

The connection supporting the session timed out.

Other 5

The session was lost due to any other reason.

Applies to