OutputCacheProfileCollection.Item[] Egenskap

Definition

Hämtar det angivna OutputCacheProfile samlingsobjektet.

Överlagringar

Name Description
Item[Int32]

Hämtar eller anger objektet OutputCacheProfile vid det angivna indexet.

Item[String]

OutputCacheProfile Hämtar med det angivna namnet.

Item[Int32]

Hämtar eller anger objektet OutputCacheProfile vid det angivna indexet.

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

Parametrar

index
Int32

Objektets samlingsindex OutputCacheProfile .

Egenskapsvärde

Vid OutputCacheProfile det angivna indexet.

Exempel

Följande kodexempel visar hur du använder egenskapen Item[] .


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

Se även

Gäller för

Item[String]

OutputCacheProfile Hämtar med det angivna namnet.

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

Parametrar

name
String

Namnet på OutputCacheProfile objektet.

Egenskapsvärde

Med OutputCacheProfile det angivna namnet.

Exempel

Följande kodexempel visar hur du använder egenskapen Item[] .

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

Se även

Gäller för