ProfileSettingsCollection.Item[] Propriedade

Definição

Obtém ou define o objeto especificado ProfileSettings .

Sobrecargas

Name Description
Item[Int32]

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

Item[String]

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

Item[Int32]

Obtém ou define o ProfileSettings objeto 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 ProfileSettings objeto na coleção.

Valor de Propriedade

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

Exemplos

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

profileSetting = healthMonitoringSection.Profiles[i];
profileSetting = healthMonitoringSection.Profiles(i)

Ver também

Aplica-se a

Item[String]

Obtém o ProfileSettings objeto 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 ProfileSettings objeto contido na coleção.

Valor de Propriedade

Um objeto ProfileSettings.

Aplica-se a