|
Dieser Artikel wurde maschinell übersetzt. Bewegen Sie den Mauszeiger über die Sätze im Artikel, um den Originaltext anzuzeigen. Weitere Informationen
|
Übersetzung
Original
|
DeviceSpecificChoiceCollection-Klasse
Hinweis: Diese API ist mittlerweile veraltet.
System.Web.UI.MobileControls.ArrayListCollectionBase
System.Web.UI.MobileControls.DeviceSpecificChoiceCollection
Namespace: System.Web.UI.MobileControls
Assembly: System.Web.Mobile (in System.Web.Mobile.dll)
[ObsoleteAttribute("The System.Web.Mobile.dll assembly has been deprecated and should no longer be used. For information about how to develop ASP.NET mobile applications, see http://go.microsoft.com/fwlink/?LinkId=157231.")] [AspNetHostingPermissionAttribute(SecurityAction.LinkDemand, Level = AspNetHostingPermissionLevel.Minimal)] [AspNetHostingPermissionAttribute(SecurityAction.InheritanceDemand, Level = AspNetHostingPermissionLevel.Minimal)] public class DeviceSpecificChoiceCollection : ArrayListCollectionBase
Der DeviceSpecificChoiceCollection-Typ macht die folgenden Member verfügbar.
| Name | Beschreibung | |
|---|---|---|
![]() | All | |
![]() | Count | |
![]() | IsReadOnly | |
![]() | IsSynchronized | |
![]() | Item | |
![]() | Items | |
![]() | SyncRoot |
| Name | Beschreibung | |
|---|---|---|
![]() | Add | |
![]() | AddAt | |
![]() | Clear | |
![]() | CopyTo | |
![]() | Equals(Object) | |
![]() | Finalize | |
![]() | GetEnumerator | |
![]() | GetHashCode | |
![]() | GetType | |
![]() | MemberwiseClone | |
![]() | Remove | |
![]() | RemoveAt | |
![]() | ToString |
Hinweis |
|---|
<%@ Page Language="C#" Inherits="System.Web.UI.MobileControls.MobilePage" %> <%@ Register TagPrefix="mobile" Namespace="System.Web.UI.MobileControls" Assembly="System.Web.Mobile" %> <%@ Import Namespace="System.Web.Mobile" %> <script runat="server"> public void Page_Load(Object sender, EventArgs e) { int count = this.Panel1.DeviceSpecific.Choices.Count; // Cycle through the DeviceSpecificChoiceCollection. for (int i = 0; i < count; i++) { string txt1 = "Choice {0} has {1} Templates. "; string txt2 = "Filter name is '{0}'. "; Label1.Text += String.Format(txt1, i, Panel1.DeviceSpecific.Choices[i].Templates.Count); Label2.Text += String.Format(txt2, Panel1.DeviceSpecific.Choices[i].Filter); } } // Add a DeviceSpecificChoice section programatically protected void form1_Init(object sender, EventArgs e) { DeviceSpecific devSpecific = Panel1.DeviceSpecific; DeviceSpecificChoice devChoiceHtml = new DeviceSpecificChoice(); devChoiceHtml.Filter = "isCHTML10"; devSpecific.Choices.Add(devChoiceHtml); ((IParserAccessor)form1).AddParsedSubObject(devSpecific); } </script> <html xmlns="http://www.w3.org/1999/xhtml" > <body> <mobile:Form ID="form1" Runat="server" OnInit="form1_Init"> <mobile:Panel id="Panel1" Runat="server"> <mobile:DeviceSpecific Runat="server"> <Choice Filter="isHTML32"> <ContentTemplate> <!-- For HTML Browsers --> <br /> <mobile:Label ID="Label3" Runat="server" Text="Visible in an HTML Browser" /> <br /> </ContentTemplate> </Choice> <Choice Filter="isWML11"> <ContentTemplate> <!-- For WML Browsers --> <br /> <mobile:Label ID="Label4" Runat="server" Text="Viewable in a WML browser" /> <br /> </ContentTemplate> </Choice> </mobile:DeviceSpecific> </mobile:Panel> <mobile:Label id="Label1" Runat="server" Font-Bold="true" /> <mobile:Label ID="Label2" Runat="server" Font-Bold="true" /> </mobile:Form> </body> </html> ... <configuration> <system.web> <compilation debug="true" /> <authentication mode="Windows" /> <customErrors mode="Off" /> <httpRuntime useFullyQualifiedRedirectUrl="true" /> <deviceFilters> <filter name="isHTML32" compare="PreferredRenderingType" argument="html32" /> <filter name="isWML11" compare="PreferredRenderingType" argument="wml11" /> <filter name="isCHTML10" compare="PreferredRenderingType" argument="chtml10" /> </deviceFilters> </system.web> </configuration>
- AspNetHostingPermission
für den Betrieb in einer Hostumgebung. Anforderungswert: LinkDemand, Berechtigungswert: Minimal. - AspNetHostingPermission
für den Betrieb in einer Hostumgebung. Anforderungswert: InheritanceDemand, Berechtigungswert: Minimal.
Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core-Rolle wird nicht unterstützt), Windows Server 2008 R2 (Server Core-Rolle wird mit SP1 oder höher unterstützt; Itanium wird nicht unterstützt)
.NET Framework unterstützt nicht alle Versionen sämtlicher Plattformen. Eine Liste der unterstützten Versionen finden Sie unter Systemanforderungen für .NET Framework.
