OutputCacheProfileCollection.Item Property (Int32)

 

Gets or sets the OutputCacheProfile object at the specified index.

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

public OutputCacheProfile this[
	int index
] { get; set; }

Parameters

index
Type: System.Int32

The collection index of the OutputCacheProfile object

Property Value

Type: System.Web.Configuration.OutputCacheProfile

The OutputCacheProfile at the specified index.

The following code example shows how to use the Item property.


// Get the profile with the specified index.
System.Web.Configuration.OutputCacheProfile outputCacheProfile2 =
  outputCacheProfiles[0];

.NET Framework
Available since 2.0
Return to top
Show: