OutputCacheProfileCollection.Get Método

Definición

Obtiene el elemento especificado OutputCacheProfileCollection .

Sobrecargas

Nombre Description
Get(Int32)

Obtiene el OutputCacheProfile elemento en el índice especificado.

Get(String)

Obtiene el OutputCacheProfile elemento con el nombre especificado.

Get(Int32)

Obtiene el OutputCacheProfile elemento 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 OutputCacheProfileCollection elemento.

Devoluciones

Elemento OutputCacheProfile en el índice especificado.

Ejemplos

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

// 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 OutputCacheProfile elemento 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

Nombre del OutputCacheProfileCollection elemento.

Devoluciones

Elemento OutputCacheProfile con el nombre especificado.

Ejemplos

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

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