OutputCacheProfileCollection.Get Method (Int32)

 

Gets the OutputCacheProfile element at the specified index.

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

public OutputCacheProfile Get(
	int index
)

Parameters

index
Type: System.Int32

The index of the OutputCacheProfileCollection element.

Return Value

Type: System.Web.Configuration.OutputCacheProfile

The OutputCacheProfile element at the specified index.

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

// Get the profile with the specified name.
System.Web.Configuration.OutputCacheProfile outputCacheProfile4 =
  outputCacheProfiles.Get("MyCacheProfile");

.NET Framework
Available since 2.0
Return to top
Show: