Share via


OutputCacheProfileCollection.Item[] Propiedad

Definición

Obtiene el elemento de la colección de OutputCacheProfile especificado.

Sobrecargas

Item[Int32]

Obtiene o establece el objeto OutputCacheProfile que se encuentra en el índice especificado.

Item[String]

Obtiene el objeto OutputCacheProfile con el nombre especificado.

Item[Int32]

Obtiene o establece el objeto OutputCacheProfile que se encuentra en el índice especificado.

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

Parámetros

index
Int32

Índice de colección del objeto OutputCacheProfile.

Valor de propiedad

OutputCacheProfile

Objeto OutputCacheProfile en el índice especificado.

Ejemplos

En el ejemplo de código siguiente se muestra cómo utilizar la propiedad 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)

Consulte también

Se aplica a

Item[String]

Obtiene el objeto OutputCacheProfile con el nombre especificado.

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

Parámetros

name
String

Nombre del objeto OutputCacheProfile.

Valor de propiedad

OutputCacheProfile

Objeto OutputCacheProfile con el nombre especificado.

Ejemplos

En el ejemplo de código siguiente se muestra cómo utilizar la propiedad 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")

Consulte también

Se aplica a