OutputCacheProfileCollection.Item[] Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets the specified OutputCacheProfile collection item.
Overloads
Item[Int32] |
Gets or sets the OutputCacheProfile object at the specified index. |
Item[String] |
Gets the OutputCacheProfile with the specified name. |
Item[Int32]
Gets or sets the OutputCacheProfile object at the specified index.
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
Parameters
- index
- Int32
The collection index of the OutputCacheProfile object.
Property Value
The OutputCacheProfile at the specified index.
Examples
The following code example shows how to use the Item[] property.
// 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)
See also
Applies to
Item[String]
Gets the OutputCacheProfile with the specified name.
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
Parameters
- name
- String
The name of the OutputCacheProfile object.
Property Value
The OutputCacheProfile with the specified name.
Examples
The following code example shows how to use the Item[] property.
// 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")
See also
Applies to
意見反應
https://aka.ms/ContentUserFeedback。
即將登場:在 2024 年,我們將逐步淘汰 GitHub 問題作為內容的意見反應機制,並將它取代為新的意見反應系統。 如需詳細資訊,請參閱:提交並檢視相關的意見反應