ClientTargetCollection Class
.NET Framework 3.0
Represents a collection of ClientTarget objects. This class cannot be inherited.
Namespace: System.Web.Configuration
Assembly: System.Web (in system.web.dll)
Assembly: System.Web (in system.web.dll)
The ClientTargetCollection type allows access to the ClientTarget elements of the ClientTargetSection section element collection.
It belongs to a group that includes ClientTarget and ClientTargetSection.
The following code example shows how to obtain the ClientTargetCollection object from the configuration file of an existing Web application.
The following example shows an excerpt from the configuration file.
<clientTarget>
<add alias=
"ie5" userAgent="Mozilla/4.0 (compatible;MSIE 5.5;Windows NT 4.0)"/>
<add alias=
"ie4" userAgent="Mozilla/4.0 (compatible;MSIE 4.0;Windows NT 4.0)"/>
<add alias=
"uplevel" userAgent="Mozilla/4.0 (compatible;MSIE 4.0;Windows NT 4.0)"/>
<add alias="downlevel" userAgent="Unknown"/>
</clientTarget>
System.Object
System.Configuration.ConfigurationElement
System.Configuration.ConfigurationElementCollection
System.Web.Configuration.ClientTargetCollection
System.Configuration.ConfigurationElement
System.Configuration.ConfigurationElementCollection
System.Web.Configuration.ClientTargetCollection
Community Additions
ADD
Show: