OutputCacheProfileCollection.Item[] Eigenschap

Definitie

Hiermee haalt u het opgegeven OutputCacheProfile verzamelingsitem op.

Overloads

Name Description
Item[Int32]

Hiermee wordt het OutputCacheProfile object opgehaald of ingesteld op de opgegeven index.

Item[String]

Hiermee haalt u de OutputCacheProfile met de opgegeven naam op.

Item[Int32]

Hiermee wordt het OutputCacheProfile object opgehaald of ingesteld op de opgegeven 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

De verzamelingsindex van het OutputCacheProfile object.

Waarde van eigenschap

De OutputCacheProfile opgegeven index.

Voorbeelden

In het volgende codevoorbeeld ziet u hoe u de Item[] eigenschap gebruikt.


// 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)

Zie ook

Van toepassing op

Item[String]

Hiermee haalt u de OutputCacheProfile met de opgegeven naam op.

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

De naam van het OutputCacheProfile object.

Waarde van eigenschap

De OutputCacheProfile met de opgegeven naam.

Voorbeelden

In het volgende codevoorbeeld ziet u hoe u de Item[] eigenschap gebruikt.

// 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")

Zie ook

Van toepassing op