OutputCacheProfileCollection.Item[] Свойство

Определение

Получает указанный элемент коллекции OutputCacheProfile.

Перегрузки

Item[Int32]

Возвращает или задает объект OutputCacheProfile по указанному индексу.

Item[String]

Возвращает объект OutputCacheProfile с указанным именем.

Item[Int32]

Возвращает или задает объект OutputCacheProfile по указанному индексу.

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

Параметры

index
Int32

Индекс объекта OutputCacheProfile в коллекции.

Значение свойства

OutputCacheProfile

Объект OutputCacheProfile по указанному индексу.

Примеры

В следующем примере кода показано, как использовать свойство Item[].


// 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)

См. также раздел

Применяется к

Item[String]

Возвращает объект OutputCacheProfile с указанным именем.

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

Параметры

name
String

Имя объекта OutputCacheProfile.

Значение свойства

OutputCacheProfile

Параметр OutputCacheProfile с указанным именем.

Примеры

В следующем примере кода показано, как использовать свойство Item[].

// 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")

См. также раздел

Применяется к