This class represents the <DeviceSpecific> element in a .aspx file, which provides a way to specify conditional control information depending on the target device. A <DeviceSpecific> element contains one or more <Choice> elements, each of which contains attributes that specify how to evaluate the choice against the capabilities of the client device. When the page is loaded at run time, the first matching choice is used.
public class DeviceSpecific : System.Web.UI.Control { // Public Constructors public DeviceSpecific( ); // Public Instance Properties public DeviceSpecificChoiceCollection Choices{get; } public override bool EnableViewState{set; get; } // overrides System.Web.UI.Control public bool HasTemplates{get; } public MobilePage MobilePage{get; } public object Owner{get; } public DeviceSpecificChoice SelectedChoice{get; } public override bool Visible{set; get; } // overrides System.Web.UI.Control// Public Instance Methods public ITemplate GetTemplate(string templateName); // Protected Instance Methods protected override void AddParsedSubObject(object obj); // overrides System.Web.UI.Control// Events public event EventHandler DataBinding; // overrides System.Web.UI.Control public event EventHandler Disposed; // overrides System.Web.UI.Control public event EventHandler Init; // overrides System.Web.UI.Control public event EventHandler Load; // overrides System.Web.UI.Control public event EventHandler PreRender; // overrides System.Web.UI.Control public event EventHandler Unload; // overrides System.Web.UI.Control }