Partilhar via


ProfileSettingsCollection.Item[] Propriedade

Definição

Obtém ou define o objeto ProfileSettings especificado.

Sobrecargas

Item[Int32]

Obtém ou define o objeto ProfileSettings no índice numérico especificado na coleção.

Item[String]

Obtém o objeto ProfileSettings com base na chave especificada na coleção.

Item[Int32]

Obtém ou define o objeto ProfileSettings no índice numérico especificado na coleção.

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.

Valor da propriedade

ProfileSettings

O objeto ProfileSettings no índice especificado ou null, se não houver nenhum objeto no índice.

Exemplos

O exemplo de código a seguir mostra como usar o método Item[]. Este exemplo de código faz parte de um exemplo maior fornecido para a HealthMonitoringSection classe.

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.

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.

Valor da propriedade

ProfileSettings

Um objeto ProfileSettings.

Aplica-se a