OutputCacheProfileCollection.Add Method (OutputCacheProfile)

 

Adds a OutputCacheProfile object to the collection.

Namespace:   System.Web.Configuration
Assembly:  System.Web (in System.Web.dll)

member Add : 
        name:OutputCacheProfile -> unit

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.

The following code example shows how to use the Add method.

No code example is currently available or this language may not be supported.

.NET Framework
Available since 2.0
Return to top
Show: