Share via


OutputCacheProfileCollection.Get Méthode

Définition

Obtient l'élément OutputCacheProfileCollection spécifié.

Surcharges

Get(Int32)

Obtient l’élément OutputCacheProfile à l’index spécifié.

Get(String)

Obtient l’élément OutputCacheProfile avec le nom spécifié.

Get(Int32)

Obtient l’élément OutputCacheProfile à l’index spécifié.

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

Paramètres

index
Int32

Index de l’élément OutputCacheProfileCollection.

Retours

Élément OutputCacheProfile à l'index spécifié.

Exemples

L'exemple de code suivant montre comment utiliser la méthode 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")

Voir aussi

S’applique à

Get(String)

Obtient l’élément OutputCacheProfile avec le nom spécifié.

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

Paramètres

name
String

Nom de l'élément OutputCacheProfileCollection.

Retours

Élément OutputCacheProfile portant le nom spécifié.

Exemples

L'exemple de code suivant montre comment utiliser la méthode 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")

Voir aussi

S’applique à