Share via


ClientTarget Class [IIS 7 and higher]

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

CollectionElement

   ClientTarget

Requirements

Type

Description

Client

Requires IIS 7 on Windows Vista.

Server

Requires IIS 7 on Windows Server 2008.

Product

IIS 7

MOF file

WebAdministration.mof

See Also

Reference

CollectionElement Class [IIS 7 and higher]

ClientTarget