Sitecore 5.1.1 API

Context.Device Property

Gets the current layout device.

[Visual Basic]
Public Shared Property Device As DeviceItem
[C#]
public static Data.Items.DeviceItem Device {get; set;}

Remarks

The device is resolved in the HttpRequest pipeline by analyzing the incoming request and the items in /sitecore/layout/devices. The best match is selected as the current device.

See Also

Context Class | Sitecore Namespace