OutputCacheProfileCollection.Get Méthode
Définition
Important
Certaines informations portent sur la préversion du produit qui est susceptible d’être en grande partie modifiée avant sa publication. Microsoft exclut toute garantie, expresse ou implicite, concernant les informations fournies ici.
Obtient l’élément spécifié OutputCacheProfileCollection .
Surcharges
| Nom | Description |
|---|---|
| Get(Int32) |
Obtient l’élément OutputCacheProfile à l’index spécifié. |
| Get(String) |
Obtient l’élément OutputCacheProfile portant 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 Get méthode.
// 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 portant 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 Get méthode.
// 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")