OutputCacheProfileCollection.Get Metodo

Definizione

Ottiene l'elemento specificato OutputCacheProfileCollection .

Overload

Nome Descrizione
Get(Int32)

Ottiene l'elemento OutputCacheProfile in corrispondenza dell'indice specificato.

Get(String)

Ottiene l'elemento OutputCacheProfile con il nome specificato.

Get(Int32)

Ottiene l'elemento OutputCacheProfile in corrispondenza dell'indice specificato.

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

Parametri

index
Int32

Indice dell'elemento OutputCacheProfileCollection .

Valori restituiti

Elemento OutputCacheProfile in corrispondenza dell'indice specificato.

Esempio

Nell'esempio di codice seguente viene illustrato come usare il Get metodo .

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

Vedi anche

Si applica a

Get(String)

Ottiene l'elemento OutputCacheProfile con il nome specificato.

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

Parametri

name
String

Nome dell'elemento OutputCacheProfileCollection .

Valori restituiti

Elemento OutputCacheProfile con il nome specificato.

Esempio

Nell'esempio di codice seguente viene illustrato come usare il Get metodo .

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

Vedi anche

Si applica a