OutputCacheProfileCollection.Get Método

Definição

Obtém o elemento especificado OutputCacheProfileCollection .

Sobrecargas

Nome Description
Get(Int32)

Obtém o OutputCacheProfile elemento no índice especificado.

Get(String)

Obtém o OutputCacheProfile elemento com o nome especificado.

Get(Int32)

Obtém o OutputCacheProfile elemento no í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

O índice do OutputCacheProfileCollection elemento.

Retornos

O OutputCacheProfile elemento no índice especificado.

Exemplos

O exemplo de código a seguir mostra como usar o 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")

Confira também

Aplica-se a

Get(String)

Obtém o OutputCacheProfile elemento com o nome 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

O nome do OutputCacheProfileCollection elemento.

Retornos

O OutputCacheProfile elemento com o nome especificado.

Exemplos

O exemplo de código a seguir mostra como usar o 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")

Confira também

Aplica-se a