OutputCacheProfileCollection.Item[] Property

Definition

Gets the specified OutputCacheProfile collection item.

Overloads

Item[Int32]

Gets or sets the OutputCacheProfile object at the specified index.

Item[String]

Gets the OutputCacheProfile with the specified name.

Item[Int32]

Gets or sets the OutputCacheProfile object at the specified index.

public System.Web.Configuration.OutputCacheProfile this[int index] { get; set; }

Parameters

index
Int32

The collection index of the OutputCacheProfile object.

Property Value

The OutputCacheProfile at the specified index.

Examples

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];

See also

Applies to

.NET Framework 4.8.1 және басқа нұсқалар
Өнім Нұсқалар
.NET Framework 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1

Item[String]

Gets the OutputCacheProfile with the specified name.

public System.Web.Configuration.OutputCacheProfile this[string name] { get; }

Parameters

name
String

The name of the OutputCacheProfile object.

Property Value

The OutputCacheProfile with the specified name.

Examples

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

// Get the profile with the specified name.
System.Web.Configuration.OutputCacheProfile outputCacheProfile3 =
  outputCacheProfiles["MyCacheProfile"];

See also

Applies to

.NET Framework 4.8.1 және басқа нұсқалар
Өнім Нұсқалар
.NET Framework 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1