OutputCacheProfileCollection.Add Method (OutputCacheProfile)
.NET Framework (current version)
Adds a OutputCacheProfile object to the collection.
Assembly: System.Web (in System.Web.dll)
Parameters
- name
-
Type:
System.Web.Configuration.OutputCacheProfile
The name of the OutputCacheProfile object to add to the collection.
| Exception | Condition |
|---|---|
| ConfigurationException | The OutputCacheProfile object already exists in the collection or the collection is read only. |
The collection cannot contain a OutputCacheProfile object with the same name.
.NET Framework
Available since 2.0
Available since 2.0
Show: