OutputCacheProfileCollection.Item[] Property
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.
Item[Int32] |
Gets or sets the OutputCacheProfile object at the specified index. |
Item[String] |
Gets the OutputCacheProfile with the specified name. |
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
.NET Framework 4.8.1 және басқа нұсқалар
Өнім | Нұсқалар |
---|---|
.NET Framework | 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1 |
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
.NET Framework 4.8.1 және басқа нұсқалар
Өнім | Нұсқалар |
---|---|
.NET Framework | 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1 |
.NET кері байланысы
.NET — бастапқы коды ашық жоба. Пікір қалдыру үшін сілтемені таңдаңыз: