-
Notifications
You must be signed in to change notification settings - Fork 1.5k
/
DeviceSpecific.xml
649 lines (616 loc) · 44.9 KB
/
DeviceSpecific.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
<Type Name="DeviceSpecific" FullName="System.Web.UI.MobileControls.DeviceSpecific">
<TypeSignature Language="C#" Value="public class DeviceSpecific : System.Web.UI.Control" />
<TypeSignature Language="ILAsm" Value=".class public auto ansi beforefieldinit DeviceSpecific extends System.Web.UI.Control" />
<TypeSignature Language="DocId" Value="T:System.Web.UI.MobileControls.DeviceSpecific" />
<TypeSignature Language="VB.NET" Value="Public Class DeviceSpecific
Inherits Control" />
<TypeSignature Language="F#" Value="type DeviceSpecific = class
 inherit Control" />
<TypeSignature Language="C++ CLI" Value="public ref class DeviceSpecific : System::Web::UI::Control" />
<AssemblyInfo>
<AssemblyName>System.Web.Mobile</AssemblyName>
<AssemblyVersion>1.0.5000.0</AssemblyVersion>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Base>
<BaseTypeName>System.Web.UI.Control</BaseTypeName>
</Base>
<Interfaces />
<Attributes>
<Attribute>
<AttributeName Language="C#">[System.ComponentModel.Designer(typeof(System.Web.UI.Design.MobileControls.DeviceSpecificDesigner))]</AttributeName>
<AttributeName Language="F#">[<System.ComponentModel.Designer(typeof(System.Web.UI.Design.MobileControls.DeviceSpecificDesigner))>]</AttributeName>
</Attribute>
<Attribute>
<AttributeName Language="C#">[System.ComponentModel.ToolboxItemFilter("System.Web.UI")]</AttributeName>
<AttributeName Language="F#">[<System.ComponentModel.ToolboxItemFilter("System.Web.UI")>]</AttributeName>
</Attribute>
<Attribute>
<AttributeName Language="C#">[System.ComponentModel.ToolboxItemFilter("System.Web.UI.MobileControls", System.ComponentModel.ToolboxItemFilterType.Require)]</AttributeName>
<AttributeName Language="F#">[<System.ComponentModel.ToolboxItemFilter("System.Web.UI.MobileControls", System.ComponentModel.ToolboxItemFilterType.Require)>]</AttributeName>
</Attribute>
<Attribute>
<AttributeName Language="C#">[System.Web.UI.ControlBuilder(typeof(System.Web.UI.MobileControls.DeviceSpecificControlBuilder))]</AttributeName>
<AttributeName Language="F#">[<System.Web.UI.ControlBuilder(typeof(System.Web.UI.MobileControls.DeviceSpecificControlBuilder))>]</AttributeName>
</Attribute>
<Attribute>
<AttributeName Language="C#">[System.Web.UI.MobileControls.PersistName("DeviceSpecific")]</AttributeName>
<AttributeName Language="F#">[<System.Web.UI.MobileControls.PersistName("DeviceSpecific")>]</AttributeName>
</Attribute>
<Attribute>
<AttributeName Language="C#">[System.Web.UI.ParseChildren(false)]</AttributeName>
<AttributeName Language="F#">[<System.Web.UI.ParseChildren(false)>]</AttributeName>
</Attribute>
<Attribute>
<AttributeName Language="C#">[System.Web.UI.PersistChildren(false)]</AttributeName>
<AttributeName Language="F#">[<System.Web.UI.PersistChildren(false)>]</AttributeName>
</Attribute>
<Attribute>
<AttributeName Language="C#">[System.Web.UI.ToolboxData("<{0}:DeviceSpecific runat="server"></{0}:DeviceSpecific>")]</AttributeName>
<AttributeName Language="F#">[<System.Web.UI.ToolboxData("<{0}:DeviceSpecific runat="server"></{0}:DeviceSpecific>")>]</AttributeName>
</Attribute>
<Attribute FrameworkAlternate="netframework-4.0;netframework-4.5;netframework-4.5.1;netframework-4.5.2;netframework-4.6;netframework-4.6.1;netframework-4.6.2;netframework-4.7;netframework-4.7.1;netframework-4.7.2;netframework-4.8;netframework-4.8.1">
<AttributeName Language="C#">[System.Obsolete("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.")]</AttributeName>
<AttributeName Language="F#">[<System.Obsolete("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.")>]</AttributeName>
</Attribute>
</Attributes>
<Docs>
<summary>Provides a construct for specifying a choice among multiple content alternatives in the [<DeviceSpecific>](https://learn.microsoft.com/previous-versions/aspnet/26s26ahw(v=vs.100)) element. For information about how to develop ASP.NET mobile applications, see <see href="https://learn.microsoft.com/aspnet/mobile/overview">Mobile Apps & Sites with ASP.NET</see>.</summary>
<remarks>
<format type="text/markdown"><![CDATA[
## Remarks
Within a [\<DeviceSpecific>](https://learn.microsoft.com/previous-versions/aspnet/26s26ahw(v=vs.100)) element, you typically specify one or more [\<Choice>](https://learn.microsoft.com/previous-versions/aspnet/3tfbhf6f(v=vs.100)) elements, each containing attributes that specify how to evaluate the choice against target device capabilities. At run time, each choice is evaluated in order, and the first choice that is successfully evaluated is used. The DeviceSpecific/Choice construct is used to specify template sets and override properties; for example, it can be used to specify device-specific images for the <xref:System.Web.UI.MobileControls.Image> control.
> [!NOTE]
> Even though the <xref:System.Web.UI.MobileControls.DeviceSpecific> class inherits from the Web Forms `System.Web.UI.Control` namespace, this is only an implementation detail. A `<Choice>` element does not behave like a control.
## Examples
The following code example demonstrates how to use <xref:System.Web.UI.MobileControls.DeviceSpecific> and <xref:System.Web.UI.MobileControls.DeviceSpecificChoice> objects to create interfaces specific to a variety of devices in a mobile form.
> [!NOTE]
> The following code sample uses the single-file code model and may not work correctly if copied directly into a code-behind file. This code sample must be copied into an empty text file that has an .aspx extension. For more information, see [ASP.NET Web Forms Page Code Model](https://learn.microsoft.com/previous-versions/aspnet/015103yb(v=vs.100)).
[!code-aspx-csharp[MobileTemplateContainerSample#1](~/snippets/csharp/VS_Snippets_WebNet/MobileTemplateContainerSample/cs/Default.aspx#1)]
[!code-aspx-vb[MobileTemplateContainerSample#1](~/snippets/visualbasic/VS_Snippets_WebNet/MobileTemplateContainerSample/vb/Default.aspx#1)]
All of the code above can be replaced declaratively with the following markup:
For these examples, the Web.config file must have the following elements:
]]></format>
</remarks>
<altmember cref="P:System.Web.UI.MobileControls.DeviceSpecific.Choices" />
<related type="Article" href="https://learn.microsoft.com/previous-versions/aspnet/26s26ahw(v=vs.100)"><DeviceSpecific> Element</related>
<related type="Article" href="https://learn.microsoft.com/previous-versions/aspnet/3tfbhf6f(v=vs.100)"><Choice> Element</related>
<related type="Article" href="https://learn.microsoft.com/previous-versions/dotnet/netframework-3.0/k20acyeh(v=vs.85)">Introduction to the DeviceSpecific Control</related>
</Docs>
<Members>
<Member MemberName=".ctor">
<MemberSignature Language="C#" Value="public DeviceSpecific ();" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig specialname rtspecialname instance void .ctor() cil managed" />
<MemberSignature Language="DocId" Value="M:System.Web.UI.MobileControls.DeviceSpecific.#ctor" />
<MemberSignature Language="VB.NET" Value="Public Sub New ()" />
<MemberSignature Language="C++ CLI" Value="public:
 DeviceSpecific();" />
<MemberType>Constructor</MemberType>
<AssemblyInfo>
<AssemblyName>System.Web.Mobile</AssemblyName>
<AssemblyVersion>1.0.5000.0</AssemblyVersion>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Parameters />
<Docs>
<summary>Initializes a new instance of the <see cref="T:System.Web.UI.MobileControls.DeviceSpecific" /> class. This API is obsolete. For information about how to develop ASP.NET mobile applications, see <see href="https://learn.microsoft.com/aspnet/mobile/overview">Mobile Apps & Sites with ASP.NET</see>.</summary>
<remarks>To be added.</remarks>
</Docs>
</Member>
<Member MemberName="AddParsedSubObject">
<MemberSignature Language="C#" Value="protected override void AddParsedSubObject (object obj);" />
<MemberSignature Language="ILAsm" Value=".method familyhidebysig virtual instance void AddParsedSubObject(object obj) cil managed" />
<MemberSignature Language="DocId" Value="M:System.Web.UI.MobileControls.DeviceSpecific.AddParsedSubObject(System.Object)" />
<MemberSignature Language="VB.NET" Value="Protected Overrides Sub AddParsedSubObject (obj As Object)" />
<MemberSignature Language="F#" Value="override this.AddParsedSubObject : obj -> unit" Usage="deviceSpecific.AddParsedSubObject obj" />
<MemberSignature Language="C++ CLI" Value="protected:
 override void AddParsedSubObject(System::Object ^ obj);" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>System.Web.Mobile</AssemblyName>
<AssemblyVersion>1.0.5000.0</AssemblyVersion>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Void</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="obj" Type="System.Object" />
</Parameters>
<Docs>
<param name="obj">The parsed element.</param>
<summary>Notifies the server control that an element, either XML or HTML, was parsed, and adds the element to the server control's <see cref="T:System.Web.UI.ControlCollection" /> object. This API is obsolete. For information about how to develop ASP.NET mobile applications, see <see href="https://learn.microsoft.com/aspnet/mobile/overview">Mobile Apps & Sites with ASP.NET</see>.</summary>
<remarks>To be added.</remarks>
</Docs>
</Member>
<Member MemberName="Choices">
<MemberSignature Language="C#" Value="public System.Web.UI.MobileControls.DeviceSpecificChoiceCollection Choices { get; }" />
<MemberSignature Language="ILAsm" Value=".property instance class System.Web.UI.MobileControls.DeviceSpecificChoiceCollection Choices" />
<MemberSignature Language="DocId" Value="P:System.Web.UI.MobileControls.DeviceSpecific.Choices" />
<MemberSignature Language="VB.NET" Value="Public ReadOnly Property Choices As DeviceSpecificChoiceCollection" />
<MemberSignature Language="F#" Value="member this.Choices : System.Web.UI.MobileControls.DeviceSpecificChoiceCollection" Usage="System.Web.UI.MobileControls.DeviceSpecific.Choices" />
<MemberSignature Language="C++ CLI" Value="public:
 property System::Web::UI::MobileControls::DeviceSpecificChoiceCollection ^ Choices { System::Web::UI::MobileControls::DeviceSpecificChoiceCollection ^ get(); };" />
<MemberType>Property</MemberType>
<AssemblyInfo>
<AssemblyName>System.Web.Mobile</AssemblyName>
<AssemblyVersion>1.0.5000.0</AssemblyVersion>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute>
<AttributeName Language="C#">[System.ComponentModel.Browsable(false)]</AttributeName>
<AttributeName Language="F#">[<System.ComponentModel.Browsable(false)>]</AttributeName>
</Attribute>
<Attribute>
<AttributeName Language="C#">[System.Web.UI.PersistenceMode(System.Web.UI.PersistenceMode.InnerDefaultProperty)]</AttributeName>
<AttributeName Language="F#">[<System.Web.UI.PersistenceMode(System.Web.UI.PersistenceMode.InnerDefaultProperty)>]</AttributeName>
</Attribute>
</Attributes>
<ReturnValue>
<ReturnType>System.Web.UI.MobileControls.DeviceSpecificChoiceCollection</ReturnType>
</ReturnValue>
<Docs>
<summary>Retrieves the collection of choices in a [<DeviceSpecific>](https://learn.microsoft.com/previous-versions/aspnet/26s26ahw(v=vs.100)) element. This API is obsolete. For information about how to develop ASP.NET mobile applications, see <see href="https://learn.microsoft.com/aspnet/mobile/overview">Mobile Apps & Sites with ASP.NET</see>.</summary>
<value>The collection of choices in a <see langword="<DeviceSpecific>" /> element.</value>
<remarks>
<format type="text/markdown"><![CDATA[
## Remarks
At run time, the choices in the collection are evaluated in the order that they are stored. For more information about choice and device-specific concepts, see the [\<Choice>](https://learn.microsoft.com/previous-versions/aspnet/3tfbhf6f(v=vs.100)) element.
## Examples
The following code example demonstrates the use of the <xref:System.Web.UI.MobileControls.DeviceSpecific.Choices%2A> property to display the number of templates contained in the first filter defined in the ASP.NET mobile Web application. For a more complete code sample, see the example for the <xref:System.Web.UI.MobileControls.DeviceSpecific> overview.
> [!NOTE]
> The following code sample uses the single-file code model and may not work correctly if copied directly into a code-behind file. This code sample must be copied into an empty text file that has an .aspx extension. For more information, see [ASP.NET Web Forms Page Code Model](https://learn.microsoft.com/previous-versions/aspnet/015103yb(v=vs.100)).
[!code-csharp[MobileDeviceSpecificSample#1](~/snippets/csharp/VS_Snippets_WebNet/MobileDeviceSpecificSample/cs/Default.aspx#1)]
[!code-vb[MobileDeviceSpecificSample#1](~/snippets/visualbasic/VS_Snippets_WebNet/MobileDeviceSpecificSample/vb/Default.aspx#1)]
]]></format>
</remarks>
<related type="Article" href="https://learn.microsoft.com/previous-versions/dotnet/netframework-3.0/k20acyeh(v=vs.85)">Introduction to the DeviceSpecific Control</related>
<related type="Article" href="https://learn.microsoft.com/previous-versions/aspnet/26s26ahw(v=vs.100)"><DeviceSpecific> Element</related>
<related type="Article" href="https://learn.microsoft.com/previous-versions/aspnet/3tfbhf6f(v=vs.100)"><Choice> Element</related>
</Docs>
</Member>
<Member MemberName="DataBinding">
<MemberSignature Language="C#" Value="public event EventHandler DataBinding;" />
<MemberSignature Language="ILAsm" Value=".event class System.EventHandler DataBinding" />
<MemberSignature Language="DocId" Value="E:System.Web.UI.MobileControls.DeviceSpecific.DataBinding" />
<MemberSignature Language="VB.NET" Value="Public Custom Event DataBinding As EventHandler " />
<MemberSignature Language="F#" Value="member this.DataBinding : EventHandler " Usage="member this.DataBinding : System.EventHandler " />
<MemberSignature Language="C++ CLI" Value="public:
 event EventHandler ^ DataBinding;" />
<MemberType>Event</MemberType>
<AssemblyInfo>
<AssemblyName>System.Web.Mobile</AssemblyName>
<AssemblyVersion>1.0.5000.0</AssemblyVersion>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute>
<AttributeName Language="C#">[System.ComponentModel.Browsable(false)]</AttributeName>
<AttributeName Language="F#">[<System.ComponentModel.Browsable(false)>]</AttributeName>
</Attribute>
</Attributes>
<ReturnValue>
<ReturnType>System.EventHandler</ReturnType>
</ReturnValue>
<Docs>
<summary>Occurs when data-binding expressions are created at design time. This API is obsolete. For information about how to develop ASP.NET mobile applications, see <see href="https://learn.microsoft.com/aspnet/mobile/overview">Mobile Apps & Sites with ASP.NET</see>.</summary>
<remarks>To be added.</remarks>
</Docs>
</Member>
<Member MemberName="Disposed">
<MemberSignature Language="C#" Value="public event EventHandler Disposed;" />
<MemberSignature Language="ILAsm" Value=".event class System.EventHandler Disposed" />
<MemberSignature Language="DocId" Value="E:System.Web.UI.MobileControls.DeviceSpecific.Disposed" />
<MemberSignature Language="VB.NET" Value="Public Custom Event Disposed As EventHandler " />
<MemberSignature Language="F#" Value="member this.Disposed : EventHandler " Usage="member this.Disposed : System.EventHandler " />
<MemberSignature Language="C++ CLI" Value="public:
 event EventHandler ^ Disposed;" />
<MemberType>Event</MemberType>
<AssemblyInfo>
<AssemblyName>System.Web.Mobile</AssemblyName>
<AssemblyVersion>1.0.5000.0</AssemblyVersion>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute>
<AttributeName Language="C#">[System.ComponentModel.Browsable(false)]</AttributeName>
<AttributeName Language="F#">[<System.ComponentModel.Browsable(false)>]</AttributeName>
</Attribute>
</Attributes>
<ReturnValue>
<ReturnType>System.EventHandler</ReturnType>
</ReturnValue>
<Docs>
<summary>Occurs when a server control is released from memory, which is the last stage of the server control life cycle when an ASP.NET page is requested. This API is obsolete. For information about how to develop ASP.NET mobile applications, see <see href="https://learn.microsoft.com/aspnet/mobile/overview">Mobile Apps & Sites with ASP.NET</see>.</summary>
<remarks>To be added.</remarks>
</Docs>
</Member>
<Member MemberName="EnableViewState">
<MemberSignature Language="C#" Value="public override bool EnableViewState { get; set; }" />
<MemberSignature Language="ILAsm" Value=".property instance bool EnableViewState" />
<MemberSignature Language="DocId" Value="P:System.Web.UI.MobileControls.DeviceSpecific.EnableViewState" />
<MemberSignature Language="VB.NET" Value="Public Overrides Property EnableViewState As Boolean" />
<MemberSignature Language="F#" Value="member this.EnableViewState : bool with get, set" Usage="System.Web.UI.MobileControls.DeviceSpecific.EnableViewState" />
<MemberSignature Language="C++ CLI" Value="public:
 virtual property bool EnableViewState { bool get(); void set(bool value); };" />
<MemberType>Property</MemberType>
<AssemblyInfo>
<AssemblyName>System.Web.Mobile</AssemblyName>
<AssemblyVersion>1.0.5000.0</AssemblyVersion>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute>
<AttributeName Language="C#">[System.ComponentModel.Bindable(false)]</AttributeName>
<AttributeName Language="F#">[<System.ComponentModel.Bindable(false)>]</AttributeName>
</Attribute>
<Attribute>
<AttributeName Language="C#">[System.ComponentModel.Browsable(false)]</AttributeName>
<AttributeName Language="F#">[<System.ComponentModel.Browsable(false)>]</AttributeName>
</Attribute>
<Attribute>
<AttributeName Language="C#">[System.ComponentModel.DesignerSerializationVisibility(System.ComponentModel.DesignerSerializationVisibility.Hidden)]</AttributeName>
<AttributeName Language="F#">[<System.ComponentModel.DesignerSerializationVisibility(System.ComponentModel.DesignerSerializationVisibility.Hidden)>]</AttributeName>
</Attribute>
</Attributes>
<ReturnValue>
<ReturnType>System.Boolean</ReturnType>
</ReturnValue>
<Docs>
<summary>Gets or sets a value indicating whether the control automatically saves its state for use in round trips. This API is obsolete. For information about how to develop ASP.NET mobile applications, see <see href="https://learn.microsoft.com/aspnet/mobile/overview">Mobile Apps & Sites with ASP.NET</see>.</summary>
<value>
<see langword="true" /> if the control automatically saves its state; otherwise, <see langword="false" />.</value>
<remarks>
<format type="text/markdown"><![CDATA[
## Remarks
You can disable view-state management for the page by using the <xref:System.Web.UI.MobileControls.DeviceSpecific.EnableViewState%2A> attribute of the `@ Page` directive, or you can disable view state on individual controls by setting their individual <xref:System.Web.UI.MobileControls.DeviceSpecific.EnableViewState%2A> properties.
]]></format>
</remarks>
<altmember cref="P:System.Web.UI.Control.EnableViewState" />
<related type="Article" href="https://learn.microsoft.com/previous-versions/dotnet/netframework-3.0/k20acyeh(v=vs.85)">Introduction to the DeviceSpecific Control</related>
</Docs>
</Member>
<Member MemberName="GetTemplate">
<MemberSignature Language="C#" Value="public System.Web.UI.ITemplate GetTemplate (string templateName);" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig instance class System.Web.UI.ITemplate GetTemplate(string templateName) cil managed" />
<MemberSignature Language="DocId" Value="M:System.Web.UI.MobileControls.DeviceSpecific.GetTemplate(System.String)" />
<MemberSignature Language="VB.NET" Value="Public Function GetTemplate (templateName As String) As ITemplate" />
<MemberSignature Language="F#" Value="member this.GetTemplate : string -> System.Web.UI.ITemplate" Usage="deviceSpecific.GetTemplate templateName" />
<MemberSignature Language="C++ CLI" Value="public:
 System::Web::UI::ITemplate ^ GetTemplate(System::String ^ templateName);" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>System.Web.Mobile</AssemblyName>
<AssemblyVersion>1.0.5000.0</AssemblyVersion>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Web.UI.ITemplate</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="templateName" Type="System.String" />
</Parameters>
<Docs>
<param name="templateName">The name of the specified template.</param>
<summary>Gets the template with the specified name. This API is obsolete. For information about how to develop ASP.NET mobile applications, see <see href="https://learn.microsoft.com/aspnet/mobile/overview">Mobile Apps & Sites with ASP.NET</see>.</summary>
<returns>The template with the specified <paramref name="templateName" />.</returns>
<remarks>
<format type="text/markdown"><![CDATA[
## Remarks
Returns `null` if the control is not templated, or if the template does not exist in the selected template set.
]]></format>
</remarks>
<related type="Article" href="https://learn.microsoft.com/previous-versions/dotnet/netframework-3.0/k20acyeh(v=vs.85)">Introduction to the DeviceSpecific Control</related>
</Docs>
</Member>
<Member MemberName="HasTemplates">
<MemberSignature Language="C#" Value="public bool HasTemplates { get; }" />
<MemberSignature Language="ILAsm" Value=".property instance bool HasTemplates" />
<MemberSignature Language="DocId" Value="P:System.Web.UI.MobileControls.DeviceSpecific.HasTemplates" />
<MemberSignature Language="VB.NET" Value="Public ReadOnly Property HasTemplates As Boolean" />
<MemberSignature Language="F#" Value="member this.HasTemplates : bool" Usage="System.Web.UI.MobileControls.DeviceSpecific.HasTemplates" />
<MemberSignature Language="C++ CLI" Value="public:
 property bool HasTemplates { bool get(); };" />
<MemberType>Property</MemberType>
<AssemblyInfo>
<AssemblyName>System.Web.Mobile</AssemblyName>
<AssemblyVersion>1.0.5000.0</AssemblyVersion>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute>
<AttributeName Language="C#">[System.ComponentModel.Browsable(false)]</AttributeName>
<AttributeName Language="F#">[<System.ComponentModel.Browsable(false)>]</AttributeName>
</Attribute>
<Attribute>
<AttributeName Language="C#">[System.ComponentModel.DesignerSerializationVisibility(System.ComponentModel.DesignerSerializationVisibility.Hidden)]</AttributeName>
<AttributeName Language="F#">[<System.ComponentModel.DesignerSerializationVisibility(System.ComponentModel.DesignerSerializationVisibility.Hidden)>]</AttributeName>
</Attribute>
</Attributes>
<ReturnValue>
<ReturnType>System.Boolean</ReturnType>
</ReturnValue>
<Docs>
<summary>Gets a value indicating that the currently selected choice in the [<DeviceSpecific>](https://learn.microsoft.com/previous-versions/aspnet/26s26ahw(v=vs.100)) element has templates defined within it. This API is obsolete. For information about how to develop ASP.NET mobile applications, see <see href="https://learn.microsoft.com/aspnet/mobile/overview">Mobile Apps & Sites with ASP.NET</see>.</summary>
<value>
<see langword="true" /> if the currently selected choice has templates defined within it; otherwise, <see langword="false" />.</value>
<remarks>To be added.</remarks>
<related type="Article" href="https://learn.microsoft.com/previous-versions/aspnet/26s26ahw(v=vs.100)"><DeviceSpecific> Element</related>
<related type="Article" href="https://learn.microsoft.com/previous-versions/aspnet/3tfbhf6f(v=vs.100)"><Choice> Element</related>
<related type="Article" href="https://learn.microsoft.com/previous-versions/dotnet/netframework-3.0/k20acyeh(v=vs.85)">Introduction to the DeviceSpecific Control</related>
</Docs>
</Member>
<Member MemberName="Init">
<MemberSignature Language="C#" Value="public event EventHandler Init;" />
<MemberSignature Language="ILAsm" Value=".event class System.EventHandler Init" />
<MemberSignature Language="DocId" Value="E:System.Web.UI.MobileControls.DeviceSpecific.Init" />
<MemberSignature Language="VB.NET" Value="Public Custom Event Init As EventHandler " />
<MemberSignature Language="F#" Value="member this.Init : EventHandler " Usage="member this.Init : System.EventHandler " />
<MemberSignature Language="C++ CLI" Value="public:
 event EventHandler ^ Init;" />
<MemberType>Event</MemberType>
<AssemblyInfo>
<AssemblyName>System.Web.Mobile</AssemblyName>
<AssemblyVersion>1.0.5000.0</AssemblyVersion>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute>
<AttributeName Language="C#">[System.ComponentModel.Browsable(false)]</AttributeName>
<AttributeName Language="F#">[<System.ComponentModel.Browsable(false)>]</AttributeName>
</Attribute>
</Attributes>
<ReturnValue>
<ReturnType>System.EventHandler</ReturnType>
</ReturnValue>
<Docs>
<summary>Occurs when the control is initialized, which is the first step in its life cycle. This API is obsolete. For information about how to develop ASP.NET mobile applications, see <see href="https://learn.microsoft.com/aspnet/mobile/overview">Mobile Apps & Sites with ASP.NET</see>.</summary>
<remarks>To be added.</remarks>
</Docs>
</Member>
<Member MemberName="Load">
<MemberSignature Language="C#" Value="public event EventHandler Load;" />
<MemberSignature Language="ILAsm" Value=".event class System.EventHandler Load" />
<MemberSignature Language="DocId" Value="E:System.Web.UI.MobileControls.DeviceSpecific.Load" />
<MemberSignature Language="VB.NET" Value="Public Custom Event Load As EventHandler " />
<MemberSignature Language="F#" Value="member this.Load : EventHandler " Usage="member this.Load : System.EventHandler " />
<MemberSignature Language="C++ CLI" Value="public:
 event EventHandler ^ Load;" />
<MemberType>Event</MemberType>
<AssemblyInfo>
<AssemblyName>System.Web.Mobile</AssemblyName>
<AssemblyVersion>1.0.5000.0</AssemblyVersion>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute>
<AttributeName Language="C#">[System.ComponentModel.Browsable(false)]</AttributeName>
<AttributeName Language="F#">[<System.ComponentModel.Browsable(false)>]</AttributeName>
</Attribute>
</Attributes>
<ReturnValue>
<ReturnType>System.EventHandler</ReturnType>
</ReturnValue>
<Docs>
<summary>Occurs when the server control is loaded into the <see cref="T:System.Web.UI.Page" /> object. This API is obsolete. For information about how to develop ASP.NET mobile applications, see <see href="https://learn.microsoft.com/aspnet/mobile/overview">Mobile Apps & Sites with ASP.NET</see>.</summary>
<remarks>To be added.</remarks>
</Docs>
</Member>
<Member MemberName="MobilePage">
<MemberSignature Language="C#" Value="public System.Web.UI.MobileControls.MobilePage MobilePage { get; }" />
<MemberSignature Language="ILAsm" Value=".property instance class System.Web.UI.MobileControls.MobilePage MobilePage" />
<MemberSignature Language="DocId" Value="P:System.Web.UI.MobileControls.DeviceSpecific.MobilePage" />
<MemberSignature Language="VB.NET" Value="Public ReadOnly Property MobilePage As MobilePage" />
<MemberSignature Language="F#" Value="member this.MobilePage : System.Web.UI.MobileControls.MobilePage" Usage="System.Web.UI.MobileControls.DeviceSpecific.MobilePage" />
<MemberSignature Language="C++ CLI" Value="public:
 property System::Web::UI::MobileControls::MobilePage ^ MobilePage { System::Web::UI::MobileControls::MobilePage ^ get(); };" />
<MemberType>Property</MemberType>
<AssemblyInfo>
<AssemblyName>System.Web.Mobile</AssemblyName>
<AssemblyVersion>1.0.5000.0</AssemblyVersion>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute>
<AttributeName Language="C#">[System.ComponentModel.Browsable(false)]</AttributeName>
<AttributeName Language="F#">[<System.ComponentModel.Browsable(false)>]</AttributeName>
</Attribute>
<Attribute>
<AttributeName Language="C#">[System.ComponentModel.DesignerSerializationVisibility(System.ComponentModel.DesignerSerializationVisibility.Hidden)]</AttributeName>
<AttributeName Language="F#">[<System.ComponentModel.DesignerSerializationVisibility(System.ComponentModel.DesignerSerializationVisibility.Hidden)>]</AttributeName>
</Attribute>
</Attributes>
<ReturnValue>
<ReturnType>System.Web.UI.MobileControls.MobilePage</ReturnType>
</ReturnValue>
<Docs>
<summary>Gets the containing page. This API is obsolete. For information about how to develop ASP.NET mobile applications, see <see href="https://learn.microsoft.com/aspnet/mobile/overview">Mobile Apps & Sites with ASP.NET</see>.</summary>
<value>The containing page.</value>
<remarks>
<format type="text/markdown"><![CDATA[
## Remarks
This property is similar to the Web Forms <xref:System.Web.UI.Control.Page%2A> property, except that it is strongly typed as a <xref:System.Web.UI.MobileControls.MobilePage> object.
]]></format>
</remarks>
<altmember cref="T:System.Web.UI.MobileControls.MobilePage" />
<related type="Article" href="https://learn.microsoft.com/previous-versions/dotnet/netframework-3.0/k20acyeh(v=vs.85)">Introduction to the DeviceSpecific Control</related>
<related type="Article" href="https://learn.microsoft.com/previous-versions/aspnet/26s26ahw(v=vs.100)"><DeviceSpecific> Element</related>
<related type="Article" href="https://learn.microsoft.com/previous-versions/aspnet/3tfbhf6f(v=vs.100)"><Choice> Element</related>
</Docs>
</Member>
<Member MemberName="Owner">
<MemberSignature Language="C#" Value="public object Owner { get; }" />
<MemberSignature Language="ILAsm" Value=".property instance object Owner" />
<MemberSignature Language="DocId" Value="P:System.Web.UI.MobileControls.DeviceSpecific.Owner" />
<MemberSignature Language="VB.NET" Value="Public ReadOnly Property Owner As Object" />
<MemberSignature Language="F#" Value="member this.Owner : obj" Usage="System.Web.UI.MobileControls.DeviceSpecific.Owner" />
<MemberSignature Language="C++ CLI" Value="public:
 property System::Object ^ Owner { System::Object ^ get(); };" />
<MemberType>Property</MemberType>
<AssemblyInfo>
<AssemblyName>System.Web.Mobile</AssemblyName>
<AssemblyVersion>1.0.5000.0</AssemblyVersion>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute>
<AttributeName Language="C#">[System.ComponentModel.Browsable(false)]</AttributeName>
<AttributeName Language="F#">[<System.ComponentModel.Browsable(false)>]</AttributeName>
</Attribute>
<Attribute>
<AttributeName Language="C#">[System.ComponentModel.DesignerSerializationVisibility(System.ComponentModel.DesignerSerializationVisibility.Hidden)]</AttributeName>
<AttributeName Language="F#">[<System.ComponentModel.DesignerSerializationVisibility(System.ComponentModel.DesignerSerializationVisibility.Hidden)>]</AttributeName>
</Attribute>
</Attributes>
<ReturnValue>
<ReturnType>System.Object</ReturnType>
</ReturnValue>
<Docs>
<summary>Gets the owner of the specified <see cref="T:System.Web.UI.MobileControls.DeviceSpecific" /> object, either a control or a style. This API is obsolete. For information about how to develop ASP.NET mobile applications, see <see href="https://learn.microsoft.com/aspnet/mobile/overview">Mobile Apps & Sites with ASP.NET</see>.</summary>
<value>The containing control of the specified <see cref="T:System.Web.UI.MobileControls.DeviceSpecific" /> element or the containing <see cref="T:System.Web.UI.WebControls.Style" /> object.</value>
<remarks>To be added.</remarks>
<related type="Article" href="https://learn.microsoft.com/previous-versions/dotnet/netframework-3.0/k20acyeh(v=vs.85)">Introduction to the DeviceSpecific Control</related>
</Docs>
</Member>
<Member MemberName="PreRender">
<MemberSignature Language="C#" Value="public event EventHandler PreRender;" />
<MemberSignature Language="ILAsm" Value=".event class System.EventHandler PreRender" />
<MemberSignature Language="DocId" Value="E:System.Web.UI.MobileControls.DeviceSpecific.PreRender" />
<MemberSignature Language="VB.NET" Value="Public Custom Event PreRender As EventHandler " />
<MemberSignature Language="F#" Value="member this.PreRender : EventHandler " Usage="member this.PreRender : System.EventHandler " />
<MemberSignature Language="C++ CLI" Value="public:
 event EventHandler ^ PreRender;" />
<MemberType>Event</MemberType>
<AssemblyInfo>
<AssemblyName>System.Web.Mobile</AssemblyName>
<AssemblyVersion>1.0.5000.0</AssemblyVersion>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute>
<AttributeName Language="C#">[System.ComponentModel.Browsable(false)]</AttributeName>
<AttributeName Language="F#">[<System.ComponentModel.Browsable(false)>]</AttributeName>
</Attribute>
</Attributes>
<ReturnValue>
<ReturnType>System.EventHandler</ReturnType>
</ReturnValue>
<Docs>
<summary>Occurs when the control is about to be rendered to its containing <see cref="T:System.Web.UI.MobileControls.MobilePage" /> object. This API is obsolete. For information about how to develop ASP.NET mobile applications, see <see href="https://learn.microsoft.com/aspnet/mobile/overview">Mobile Apps & Sites with ASP.NET</see>.</summary>
<remarks>To be added.</remarks>
</Docs>
</Member>
<Member MemberName="SelectedChoice">
<MemberSignature Language="C#" Value="public System.Web.UI.MobileControls.DeviceSpecificChoice SelectedChoice { get; }" />
<MemberSignature Language="ILAsm" Value=".property instance class System.Web.UI.MobileControls.DeviceSpecificChoice SelectedChoice" />
<MemberSignature Language="DocId" Value="P:System.Web.UI.MobileControls.DeviceSpecific.SelectedChoice" />
<MemberSignature Language="VB.NET" Value="Public ReadOnly Property SelectedChoice As DeviceSpecificChoice" />
<MemberSignature Language="F#" Value="member this.SelectedChoice : System.Web.UI.MobileControls.DeviceSpecificChoice" Usage="System.Web.UI.MobileControls.DeviceSpecific.SelectedChoice" />
<MemberSignature Language="C++ CLI" Value="public:
 property System::Web::UI::MobileControls::DeviceSpecificChoice ^ SelectedChoice { System::Web::UI::MobileControls::DeviceSpecificChoice ^ get(); };" />
<MemberType>Property</MemberType>
<AssemblyInfo>
<AssemblyName>System.Web.Mobile</AssemblyName>
<AssemblyVersion>1.0.5000.0</AssemblyVersion>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute>
<AttributeName Language="C#">[System.ComponentModel.Browsable(false)]</AttributeName>
<AttributeName Language="F#">[<System.ComponentModel.Browsable(false)>]</AttributeName>
</Attribute>
<Attribute>
<AttributeName Language="C#">[System.ComponentModel.DesignerSerializationVisibility(System.ComponentModel.DesignerSerializationVisibility.Hidden)]</AttributeName>
<AttributeName Language="F#">[<System.ComponentModel.DesignerSerializationVisibility(System.ComponentModel.DesignerSerializationVisibility.Hidden)>]</AttributeName>
</Attribute>
</Attributes>
<ReturnValue>
<ReturnType>System.Web.UI.MobileControls.DeviceSpecificChoice</ReturnType>
</ReturnValue>
<Docs>
<summary>Gets the currently selected choice, or <see langword="null" /> if none are applicable. This API is obsolete. For information about how to develop ASP.NET mobile applications, see <see href="https://learn.microsoft.com/aspnet/mobile/overview">Mobile Apps & Sites with ASP.NET</see>.</summary>
<value>The currently selected choice.</value>
<remarks>
<format type="text/markdown"><![CDATA[
## Remarks
You can use a DeviceSpecific/Choice construct to specify device-specific content, such as property overrides or templates, for a control or style. To select a choice from the choices in a [\<DeviceSpecific>](https://learn.microsoft.com/previous-versions/aspnet/26s26ahw(v=vs.100)) element, ASP.NET evaluates each choice in sequential order against the capabilities of the target device. The first matching choice is made the selected choice, and is used for device-specific content.
## Examples
The following code example demonstrates how to use the <xref:System.Web.UI.MobileControls.DeviceSpecific.SelectedChoice%2A> property to display the filter associated with the current choice. For a more complete code sample, see the example for the <xref:System.Web.UI.MobileControls.DeviceSpecific> overview.
[!code-csharp[MobileDeviceChoiceSample#1](~/snippets/csharp/VS_Snippets_WebNet/MobileDeviceChoiceSample/cs/Default.aspx#1)]
[!code-vb[MobileDeviceChoiceSample#1](~/snippets/visualbasic/VS_Snippets_WebNet/MobileDeviceChoiceSample/vb/Default.aspx#1)]
]]></format>
</remarks>
<related type="Article" href="https://learn.microsoft.com/previous-versions/aspnet/26s26ahw(v=vs.100)"><DeviceSpecific> Element</related>
<related type="Article" href="https://learn.microsoft.com/previous-versions/aspnet/3tfbhf6f(v=vs.100)"><Choice> Element</related>
<related type="Article" href="https://learn.microsoft.com/previous-versions/dotnet/netframework-3.0/k20acyeh(v=vs.85)">Introduction to the DeviceSpecific Control</related>
</Docs>
</Member>
<Member MemberName="Unload">
<MemberSignature Language="C#" Value="public event EventHandler Unload;" />
<MemberSignature Language="ILAsm" Value=".event class System.EventHandler Unload" />
<MemberSignature Language="DocId" Value="E:System.Web.UI.MobileControls.DeviceSpecific.Unload" />
<MemberSignature Language="VB.NET" Value="Public Custom Event Unload As EventHandler " />
<MemberSignature Language="F#" Value="member this.Unload : EventHandler " Usage="member this.Unload : System.EventHandler " />
<MemberSignature Language="C++ CLI" Value="public:
 event EventHandler ^ Unload;" />
<MemberType>Event</MemberType>
<AssemblyInfo>
<AssemblyName>System.Web.Mobile</AssemblyName>
<AssemblyVersion>1.0.5000.0</AssemblyVersion>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute>
<AttributeName Language="C#">[System.ComponentModel.Browsable(false)]</AttributeName>
<AttributeName Language="F#">[<System.ComponentModel.Browsable(false)>]</AttributeName>
</Attribute>
</Attributes>
<ReturnValue>
<ReturnType>System.EventHandler</ReturnType>
</ReturnValue>
<Docs>
<summary>Occurs when the server control is unloaded from memory. This API is obsolete. For information about how to develop ASP.NET mobile applications, see <see href="https://learn.microsoft.com/aspnet/mobile/overview">Mobile Apps & Sites with ASP.NET</see>.</summary>
<remarks>To be added.</remarks>
</Docs>
</Member>
<Member MemberName="Visible">
<MemberSignature Language="C#" Value="public override bool Visible { get; set; }" />
<MemberSignature Language="ILAsm" Value=".property instance bool Visible" />
<MemberSignature Language="DocId" Value="P:System.Web.UI.MobileControls.DeviceSpecific.Visible" />
<MemberSignature Language="VB.NET" Value="Public Overrides Property Visible As Boolean" />
<MemberSignature Language="F#" Value="member this.Visible : bool with get, set" Usage="System.Web.UI.MobileControls.DeviceSpecific.Visible" />
<MemberSignature Language="C++ CLI" Value="public:
 virtual property bool Visible { bool get(); void set(bool value); };" />
<MemberType>Property</MemberType>
<AssemblyInfo>
<AssemblyName>System.Web.Mobile</AssemblyName>
<AssemblyVersion>1.0.5000.0</AssemblyVersion>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute>
<AttributeName Language="C#">[System.ComponentModel.Bindable(false)]</AttributeName>
<AttributeName Language="F#">[<System.ComponentModel.Bindable(false)>]</AttributeName>
</Attribute>
<Attribute>
<AttributeName Language="C#">[System.ComponentModel.Browsable(false)]</AttributeName>
<AttributeName Language="F#">[<System.ComponentModel.Browsable(false)>]</AttributeName>
</Attribute>
<Attribute>
<AttributeName Language="C#">[System.ComponentModel.DesignerSerializationVisibility(System.ComponentModel.DesignerSerializationVisibility.Hidden)]</AttributeName>
<AttributeName Language="F#">[<System.ComponentModel.DesignerSerializationVisibility(System.ComponentModel.DesignerSerializationVisibility.Hidden)>]</AttributeName>
</Attribute>
</Attributes>
<ReturnValue>
<ReturnType>System.Boolean</ReturnType>
</ReturnValue>
<Docs>
<summary>Gets or sets a value indicating whether the specified control is rendered. This API is obsolete. For information about how to develop ASP.NET mobile applications, see <see href="https://learn.microsoft.com/aspnet/mobile/overview">Mobile Apps & Sites with ASP.NET</see>.</summary>
<value>
<see langword="true" /> if the specified control is rendered; otherwise, <see langword="false" />. The default is <see langword="true" />.</value>
<remarks>To be added.</remarks>
<related type="Article" href="https://learn.microsoft.com/previous-versions/dotnet/netframework-3.0/k20acyeh(v=vs.85)">Introduction to the DeviceSpecific Control</related>
</Docs>
</Member>
</Members>
</Type>