OutputCacheProfileCollection.Item[] Propriété
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 de collection spécifié OutputCacheProfile .
Surcharges
| Nom | Description |
|---|---|
| Item[Int32] |
Obtient ou définit l’objet OutputCacheProfile à l’index spécifié. |
| Item[String] |
Obtient le OutputCacheProfile nom spécifié. |
Item[Int32]
Obtient ou définit l’objet OutputCacheProfile à l’index spécifié.
public:
property System::Web::Configuration::OutputCacheProfile ^ default[int] { System::Web::Configuration::OutputCacheProfile ^ get(int index); void set(int index, System::Web::Configuration::OutputCacheProfile ^ value); };
public System.Web.Configuration.OutputCacheProfile this[int index] { get; set; }
member this.Item(int) : System.Web.Configuration.OutputCacheProfile with get, set
Default Public Property Item(index As Integer) As OutputCacheProfile
Paramètres
- index
- Int32
Index de collection de l’objet OutputCacheProfile .
Valeur de propriété
À OutputCacheProfile l’index spécifié.
Exemples
L’exemple de code suivant montre comment utiliser la Item[] propriété.
// Get the profile with the specified index.
System.Web.Configuration.OutputCacheProfile outputCacheProfile2 =
outputCacheProfiles[0];
' Get the profile with the specified index.
Dim outputCacheProfile2 _
As System.Web.Configuration.OutputCacheProfile = _
outputCacheProfiles(0)
Voir aussi
S’applique à
Item[String]
Obtient le OutputCacheProfile nom spécifié.
public:
property System::Web::Configuration::OutputCacheProfile ^ default[System::String ^] { System::Web::Configuration::OutputCacheProfile ^ get(System::String ^ name); };
public System.Web.Configuration.OutputCacheProfile this[string name] { get; }
member this.Item(string) : System.Web.Configuration.OutputCacheProfile
Default Public ReadOnly Property Item(name As String) As OutputCacheProfile
Paramètres
- name
- String
Nom de l’objet OutputCacheProfile .
Valeur de propriété
Avec OutputCacheProfile le nom spécifié.
Exemples
L’exemple de code suivant montre comment utiliser la Item[] propriété.
// Get the profile with the specified name.
System.Web.Configuration.OutputCacheProfile outputCacheProfile3 =
outputCacheProfiles["MyCacheProfile"];
' Get the profile with the specified name.
Dim outputCacheProfile3 _
As System.Web.Configuration.OutputCacheProfile = _
outputCacheProfiles("MyCacheProfile")