Condividi tramite


OutputCacheProfileCollection.Get Metodo

Definizione

Ottiene l'elemento OutputCacheProfileCollection specificato.

Overload

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.

Restituisce

OutputCacheProfile

Elemento di OutputCacheProfile in corrispondenza dell'indice specificato.

Esempio

Nell'esempio di codice riportato di seguito viene illustrato come utilizzare il metodo 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")

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 di OutputCacheProfileCollection.

Restituisce

OutputCacheProfile

Elemento OutputCacheProfile con il nome specificato.

Esempio

Nell'esempio di codice riportato di seguito viene illustrato come utilizzare il metodo 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")

Vedi anche

Si applica a