ClientTarget Class
Represents the mapping of a user agent to an alias.
Syntax
class ClientTarget : CollectionElement
Methods
This class contains no methods.
Properties
The following table lists the properties exposed by the ClientTarget
class.
Name | Description |
---|---|
Alias |
A read-only string value that contains an alias that is mapped to the user agent specified in the UserAgent property. The key property. |
UserAgent |
A read/write string value that identifies a specific user agent. |
Subclasses
This class contains no subclasses.
Remarks
Instances of this class are contained in the ClientTarget
property of the ClientTargetSection class.
The following ClientTarget
values are configured in the root Web.config file in the .NET Framework 2.0.
Alias | User Agent |
---|---|
"ie5" | "Mozilla/4.0 (compatible; MSIE 5.5; Windows NT 4.0)" |
"ie4" | "Mozilla/4.0 (compatible; MSIE 4.0; Windows NT 4.0)" |
"uplevel" | "Mozilla/4.0 (compatible; MSIE 5.5; Windows NT 5.1)" |
"downlevel" | "Generic Downlevel" |
Inheritance Hierarchy
ClientTarget
Requirements
Type | Description |
---|---|
Client | - IIS 7.0 on Windows Vista - IIS 7.5 on Windows 7 - IIS 8.0 on Windows 8 - IIS 10.0 on Windows 10 |
Server | - IIS 7.0 on Windows Server 2008 - IIS 7.5 on Windows Server 2008 R2 - IIS 8.0 on Windows Server 2012 - IIS 8.5 on Windows Server 2012 R2 - IIS 10.0 on Windows Server 2016 |
Product | - IIS 7.0, IIS 7.5, IIS 8.0, IIS 8.5, IIS 10.0 |
MOF file | WebAdministration.mof |
See Also
System.Web.Configuration.ClientTarget CollectionElement Class
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for