System.Web.Configuration.ClientTargetCollection.Add Method

Adds the specified System.Web.Configuration.ClientTarget object to the collection.

Syntax

public void Add (ClientTarget clientTarget)

Parameters

clientTarget
The System.Web.Configuration.ClientTarget to add to the collection.

Remarks

Before adding a client target to the collection, you must create a System.Web.Configuration.ClientTarget object and initialize its ClientTarget.Alias and ClientTarget.UserAgent properties.

Requirements

Namespace: System.Web.Configuration
Assembly: System.Web (in System.Web.dll)
Assembly Versions: 2.0.0.0
Since: .NET 2.0