OutputCacheProfileCollection.Get Метод
Определение
Важно!
Некоторые сведения относятся к предварительной версии продукта, в которую до выпуска могут быть внесены существенные изменения. Майкрософт не предоставляет никаких гарантий, явных или подразумеваемых, относительно приведенных здесь сведений.
Получает указанный элемент OutputCacheProfileCollection.
Перегрузки
Get(Int32) |
Возвращает элемент OutputCacheProfile по указанному индексу. |
Get(String) |
Возвращает элемент OutputCacheProfile с указанным именем. |
Get(Int32)
Возвращает элемент OutputCacheProfile по указанному индексу.
public:
System::Web::Configuration::OutputCacheProfile ^ Get(int index);
public System.Web.Configuration.OutputCacheProfile Get (int index);
member this.Get : int -> System.Web.Configuration.OutputCacheProfile
Public Function Get (index As Integer) As OutputCacheProfile
Параметры
- index
- Int32
Индекс элемента OutputCacheProfileCollection.
Возвращаемое значение
Элемент OutputCacheProfile, расположенный в позиции с заданным индексом.
Примеры
В следующем примере кода показано применение метода Get.
// Get the profile with the specified name.
System.Web.Configuration.OutputCacheProfile outputCacheProfile4 =
outputCacheProfiles.Get("MyCacheProfile");
'Get the profile with the specified name.
Dim outputCacheProfile4 _
As System.Web.Configuration.OutputCacheProfile = _
outputCacheProfiles.Get("MyCacheProfile")
См. также раздел
Применяется к
Get(String)
Возвращает элемент OutputCacheProfile с указанным именем.
public:
System::Web::Configuration::OutputCacheProfile ^ Get(System::String ^ name);
public System.Web.Configuration.OutputCacheProfile Get (string name);
member this.Get : string -> System.Web.Configuration.OutputCacheProfile
Public Function Get (name As String) As OutputCacheProfile
Параметры
- name
- String
Имя элемента OutputCacheProfileCollection.
Возвращаемое значение
Элемент OutputCacheProfile с заданным именем.
Примеры
В следующем примере кода показано применение метода Get.
// Get the profile with the specified name.
System.Web.Configuration.OutputCacheProfile outputCacheProfile4 =
outputCacheProfiles.Get("MyCacheProfile");
'Get the profile with the specified name.
Dim outputCacheProfile4 _
As System.Web.Configuration.OutputCacheProfile = _
outputCacheProfiles.Get("MyCacheProfile")