ClientTargetCollection.Add Method (ClientTarget)
.NET Framework (current version)
Adds the specified ClientTarget object to the collection.
Assembly: System.Web (in System.Web.dll)
Parameters
- clientTarget
-
Type:
System.Web.Configuration.ClientTarget
The ClientTarget to add to the collection.
Before adding a client target to the collection, you must create a ClientTarget object and initialize its Alias and UserAgent properties.
The following code example adds a ClientTarget object to the ClientTargetCollection collection.
For information about how to get the collection, see to the code example in the ClientTargetCollection class overview.
.NET Framework
Available since 2.0
Available since 2.0
Show: