ProfileSettingsCollection.Item[] Propriedade
Definição
Obtém ou define o objeto ProfileSettings especificado.Gets or sets the specified ProfileSettings object.
Sobrecargas
| Item[Int32] |
Obtém ou define o objeto ProfileSettings no índice numérico especificado na coleção.Gets or sets the ProfileSettings object at the specified numeric index in the collection. |
| Item[String] |
Obtém o objeto ProfileSettings com base na chave especificada na coleção.Gets the ProfileSettings object based on the specified key in the collection. |
Item[Int32]
Obtém ou define o objeto ProfileSettings no índice numérico especificado na coleção.Gets or sets the ProfileSettings object at the specified numeric index in the collection.
public:
property System::Web::Configuration::ProfileSettings ^ default[int] { System::Web::Configuration::ProfileSettings ^ get(int index); void set(int index, System::Web::Configuration::ProfileSettings ^ value); };
public System.Web.Configuration.ProfileSettings this[int index] { get; set; }
member this.Item(int) : System.Web.Configuration.ProfileSettings with get, set
Default Public Property Item(index As Integer) As ProfileSettings
Parâmetros
- index
- Int32
O índice de um objeto ProfileSettings na coleção.The index of a ProfileSettings object in the collection.
Valor da propriedade
O objeto ProfileSettings no índice especificado ou null, se não houver nenhum objeto no índice.The ProfileSettings object at the specified index, or null if there is no object at that index.
Exemplos
O exemplo de código a seguir mostra como usar o método Item[].The following code example shows how to use the Item[] method. Este exemplo de código faz parte de um exemplo maior fornecido para a HealthMonitoringSection classe.This code example is part of a larger example provided for the HealthMonitoringSection class.
profileSetting = healthMonitoringSection.Profiles[i];
profileSetting = healthMonitoringSection.Profiles(i)
Confira também
Aplica-se a
Item[String]
Obtém o objeto ProfileSettings com base na chave especificada na coleção.Gets the ProfileSettings object based on the specified key in the collection.
public:
property System::Web::Configuration::ProfileSettings ^ default[System::String ^] { System::Web::Configuration::ProfileSettings ^ get(System::String ^ key); };
public System.Web.Configuration.ProfileSettings this[string key] { get; }
member this.Item(string) : System.Web.Configuration.ProfileSettings
Default Public ReadOnly Property Item(key As String) As ProfileSettings
Parâmetros
- key
- String
O nome do objeto ProfileSettings contido na coleção.The name of the ProfileSettings object contained in the collection.
Valor da propriedade
Um objeto ProfileSettings.A ProfileSettings object.