Compartir vía


OutputCacheProfileCollection.Get Método

Definición

Obtiene el elemento OutputCacheProfileCollection especificado.

Sobrecargas

Get(Int32)

Obtiene el elemento OutputCacheProfile en el índice especificado.

Get(String)

Obtiene el elemento OutputCacheProfile con el nombre especificado.

Get(Int32)

Obtiene el elemento OutputCacheProfile en el índice especificado.

public:
 System::Web::Configuration::OutputCacheProfile ^ Get(int index);
public System.Web.Configuration.OutputCacheProfile Get (int index);
member this.Get : int -> System.Web.Configuration.OutputCacheProfile
Public Function Get (index As Integer) As OutputCacheProfile

Parámetros

index
Int32

Índice del elemento OutputCacheProfileCollection.

Devoluciones

OutputCacheProfile

Elemento OutputCacheProfile en el índice especificado.

Ejemplos

En el ejemplo de código siguiente, se muestra cómo se utiliza el método Get.

// Get the profile with the specified name.
System.Web.Configuration.OutputCacheProfile outputCacheProfile4 =
  outputCacheProfiles.Get("MyCacheProfile");
'Get the profile with the specified name.
Dim outputCacheProfile4 _
As System.Web.Configuration.OutputCacheProfile = _
outputCacheProfiles.Get("MyCacheProfile")

Consulte también

Se aplica a

Get(String)

Obtiene el elemento OutputCacheProfile con el nombre especificado.

public:
 System::Web::Configuration::OutputCacheProfile ^ Get(System::String ^ name);
public System.Web.Configuration.OutputCacheProfile Get (string name);
member this.Get : string -> System.Web.Configuration.OutputCacheProfile
Public Function Get (name As String) As OutputCacheProfile

Parámetros

name
String

El nombre del elemento de OutputCacheProfileCollection.

Devoluciones

OutputCacheProfile

Elemento OutputCacheProfile con el nombre especificado.

Ejemplos

En el ejemplo de código siguiente, se muestra cómo se utiliza el método Get.

// Get the profile with the specified name.
System.Web.Configuration.OutputCacheProfile outputCacheProfile4 =
  outputCacheProfiles.Get("MyCacheProfile");
'Get the profile with the specified name.
Dim outputCacheProfile4 _
As System.Web.Configuration.OutputCacheProfile = _
outputCacheProfiles.Get("MyCacheProfile")

Consulte también

Se aplica a