Enclosure​Location Enclosure​Location Enclosure​Location Class

Definition

Describes the physical location of a device in its enclosure.

public : sealed class EnclosureLocation : IEnclosureLocation, IEnclosureLocation2public sealed class EnclosureLocation : IEnclosureLocation, IEnclosureLocation2Public NotInheritable Class EnclosureLocation Implements IEnclosureLocation, IEnclosureLocation2
Attributes
Windows 10 requirements
Device family
Windows 10 (introduced v10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v1)

Remarks

The EnclosureLocation property returns this object.

If the physical location of a device within its enclosure is unknown, the inDock and inLid properties are false and the Panel property has the value Unknown.

Properties

InDock InDock InDock

Indicates whether the device is physically located in the docking station of the portable computer.

public : PlatForm::Boolean InDock { get; }public bool InDock { get; }Public ReadOnly Property InDock As bool
Value
PlatForm::Boolean bool bool

A value that is True if the device is physically located in the docking station, and False if it is not.

Attributes

InLid InLid InLid

Indicates whether the device is physically located in the lid of the portable computer.

public : PlatForm::Boolean InLid { get; }public bool InLid { get; }Public ReadOnly Property InLid As bool
Value
PlatForm::Boolean bool bool

A value that is True if the device is physically located in the lid, and False if it is not.

Attributes

Panel Panel Panel

Indicates which panel of the computer the device is physically located on.

public : Panel Panel { get; }public Panel Panel { get; }Public ReadOnly Property Panel As Panel
Value
Panel Panel Panel

One of the values of the Panel enumeration that indicates which panel of the computer the device is physically located on.

Attributes

RotationAngleInDegreesClockwise RotationAngleInDegreesClockwise RotationAngleInDegreesClockwise

Gets the physical degree of rotation for a device in its enclosure.

public : unsigned short RotationAngleInDegreesClockwise { get; }public uint RotationAngleInDegreesClockwise { get; }Public ReadOnly Property RotationAngleInDegreesClockwise As uint
Value
unsigned short uint uint

The degrees of rotation for the device in its enclosure. This is in a clockwise direction.

Attributes
Additional features and requirements
Device family
Windows 10 Anniversary Edition (introduced v10.0.14393.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v3)