OutputCacheProfileCollection.Item[] Eigenschaft
Definition
Wichtig
Einige Informationen beziehen sich auf Vorabversionen, die vor dem Release ggf. grundlegend überarbeitet werden. Microsoft übernimmt hinsichtlich der hier bereitgestellten Informationen keine Gewährleistungen, seien sie ausdrücklich oder konkludent.
Ruft das angegebene OutputCacheProfile Auflistungselement ab.
Überlädt
| Name | Beschreibung |
|---|---|
| Item[Int32] |
Ruft ab oder legt das OutputCacheProfile Objekt am angegebenen Index fest. |
| Item[String] |
Ruft den OutputCacheProfile mit dem angegebenen Namen ab. |
Item[Int32]
Ruft ab oder legt das OutputCacheProfile Objekt am angegebenen Index fest.
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
Parameter
- index
- Int32
Der Auflistungsindex des OutputCacheProfile Objekts.
Eigenschaftswert
Der OutputCacheProfile am angegebenen Index.
Beispiele
Das folgende Codebeispiel zeigt, wie die Item[] Eigenschaft verwendet wird.
// 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)
Weitere Informationen
Gilt für:
Item[String]
Ruft den OutputCacheProfile mit dem angegebenen Namen ab.
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
Parameter
- name
- String
Der Name des OutputCacheProfile Objekts.
Eigenschaftswert
Der OutputCacheProfile mit dem angegebenen Namen.
Beispiele
Das folgende Codebeispiel zeigt, wie die Item[] Eigenschaft verwendet wird.
// 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")