OutputCacheProfileCollection.Item[] Proprietà

Definizione

Ottiene l'elemento della raccolta specificato OutputCacheProfile .

Overload

Nome Descrizione
Item[Int32]

Ottiene o imposta l'oggetto OutputCacheProfile in corrispondenza dell'indice specificato.

Item[String]

Ottiene l'oggetto OutputCacheProfile con il nome specificato.

Item[Int32]

Ottiene o imposta l'oggetto OutputCacheProfile in corrispondenza dell'indice specificato.

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

Parametri

index
Int32

Indice dell'insieme dell'oggetto OutputCacheProfile .

Valore della proprietà

Oggetto OutputCacheProfile in corrispondenza dell'indice specificato.

Esempio

Nell'esempio di codice seguente viene illustrato come utilizzare la Item[] proprietà .


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

Vedi anche

Si applica a

Item[String]

Ottiene l'oggetto OutputCacheProfile con il nome specificato.

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

Parametri

name
String

Nome dell'oggetto OutputCacheProfile .

Valore della proprietà

Oggetto OutputCacheProfile con il nome specificato.

Esempio

Nell'esempio di codice seguente viene illustrato come utilizzare la Item[] proprietà .

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

Vedi anche

Si applica a