Skip to main content
EnclosureLocation class

Describes the physical location of a device in its enclosure.

Syntax


/* For information about creating or accessing this object, see Remarks. */

public sealed class EnclosureLocation

Public NotInheritable Class EnclosureLocation

public ref class EnclosureLocation sealed 

Members

The EnclosureLocation class has these types of members:

Properties

The EnclosureLocation class has these properties.

PropertyAccess typeDescription

InDock

Read-only

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

InLid

Read-only

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

Panel

Read-only

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

RotationAngleInDegreesClockwise

Read-only

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

 

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.

Requirements (Windows 10 device family)

Device family

Universal, introduced version 10.0.10240.0

API contract

Windows.Foundation.UniversalApiContract, introduced version 1.0

Namespace

Windows.Devices.Enumeration
Windows::Devices::Enumeration [C++]

Metadata

Windows.Foundation.UniversalApiContract.winmd

Requirements (Windows 8.x and Windows Phone 8.x)

Minimum supported client

Windows 8 [Windows Store apps, desktop apps]

Minimum supported server

Windows Server 2012 [Windows Store apps, desktop apps]

Minimum supported phone

Windows Phone 8.1 [Windows Phone Silverlight 8.1 and Windows Runtime apps]

Namespace

Windows.Devices.Enumeration
Windows::Devices::Enumeration [C++]

Metadata

Windows.winmd

Attributes

[ DualApiPartition()]
[ MarshalingBehavior(Agile)]
[ Version(0x06020000)]

See also

Object