Edytuj

Udostępnij za pośrednictwem


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:
 property System::Web::Configuration::OutputCacheProfile ^ default[int] { System::Web::Configuration::OutputCacheProfile ^ get(int index); void set(int index, System::Web::Configuration::OutputCacheProfile ^ value); };
public System.Web.Configuration.OutputCacheProfile this[int index] { get; set; }
member this.Item(int) : System.Web.Configuration.OutputCacheProfile with get, set
Default Public Property Item(index As Integer) As OutputCacheProfile

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];
' Get the profile with the specified index.
  Dim outputCacheProfile2 _
  As System.Web.Configuration.OutputCacheProfile = _
  outputCacheProfiles(0)

See also

Applies to

Item[String]

Gets the OutputCacheProfile with the specified name.

public:
 property System::Web::Configuration::OutputCacheProfile ^ default[System::String ^] { System::Web::Configuration::OutputCacheProfile ^ get(System::String ^ name); };
public System.Web.Configuration.OutputCacheProfile this[string name] { get; }
member this.Item(string) : System.Web.Configuration.OutputCacheProfile
Default Public ReadOnly Property Item(name As String) As OutputCacheProfile

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"];
' Get the profile with the specified name.
  Dim outputCacheProfile3 _
  As System.Web.Configuration.OutputCacheProfile = _
  outputCacheProfiles("MyCacheProfile")

See also

Applies to