EnclosureLocation EnclosureLocation EnclosureLocation EnclosureLocation Class

Definition

Describes the physical location of a device in its enclosure.

public : sealed class EnclosureLocation : IEnclosureLocation, IEnclosureLocation2
public sealed class EnclosureLocation : IEnclosureLocation, IEnclosureLocation2
Public NotInheritable Class EnclosureLocation Implements IEnclosureLocation, IEnclosureLocation2
// This class does not provide a public constructor.
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 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
var bool = enclosureLocation.inDock;
Value
Platform::Boolean bool bool bool

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

InLid 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
var bool = enclosureLocation.inLid;
Value
Platform::Boolean bool bool bool

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

Panel 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
var panel = enclosureLocation.panel;
Value
Panel Panel Panel Panel

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

RotationAngleInDegreesClockwise RotationAngleInDegreesClockwise RotationAngleInDegreesClockwise RotationAngleInDegreesClockwise

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

public : unsigned int RotationAngleInDegreesClockwise { get; }
public uint RotationAngleInDegreesClockwise { get; }
Public ReadOnly Property RotationAngleInDegreesClockwise As uint
var uint = enclosureLocation.rotationAngleInDegreesClockwise;
Value
unsigned int uint uint uint

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

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