OutputCacheProfileCollection.Item[] Propriedade
Definição
Importante
Algumas informações dizem respeito a um produto pré-lançado que pode ser substancialmente modificado antes de ser lançado. A Microsoft não faz garantias, de forma expressa ou implícita, em relação à informação aqui apresentada.
Recebe o item de coleção especificado OutputCacheProfile .
Sobrecargas
| Name | Description |
|---|---|
| Item[Int32] |
Obtém ou define o OutputCacheProfile objeto no índice especificado. |
| Item[String] |
Recebe o OutputCacheProfile nome especificado. |
Item[Int32]
Obtém ou define o OutputCacheProfile objeto no índice especificado.
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
Parâmetros
- index
- Int32
O índice de coleção do OutputCacheProfile objeto.
Valor de Propriedade
O OutputCacheProfile no índice especificado.
Exemplos
O seguinte exemplo de código mostra como usar a Item[] propriedade.
// 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)
Ver também
Aplica-se a
Item[String]
Recebe o OutputCacheProfile nome especificado.
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
Parâmetros
- name
- String
O nome do OutputCacheProfile objeto.
Valor de Propriedade
O OutputCacheProfile com o nome especificado.
Exemplos
O seguinte exemplo de código mostra como usar a Item[] propriedade.
// 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")