ProfileSettingsCollection.Item[] Proprietà

Definizione

Ottiene o imposta l'oggetto specificato ProfileSettings .

Overload

Nome Descrizione
Item[Int32]

Ottiene o imposta l'oggetto ProfileSettings in corrispondenza dell'indice numerico specificato nell'insieme.

Item[String]

Ottiene l'oggetto ProfileSettings in base alla chiave specificata nell'insieme.

Item[Int32]

Ottiene o imposta l'oggetto ProfileSettings in corrispondenza dell'indice numerico specificato nell'insieme.

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

Parametri

index
Int32

Indice di un ProfileSettings oggetto nell'insieme.

Valore della proprietà

Oggetto ProfileSettings in corrispondenza dell'indice specificato o null se non è presente alcun oggetto in corrispondenza di tale indice.

Esempio

Nell'esempio di codice seguente viene illustrato come usare il Item[] metodo . Questo esempio di codice fa parte di un esempio più ampio fornito per la HealthMonitoringSection classe .

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

Vedi anche

Si applica a

Item[String]

Ottiene l'oggetto ProfileSettings in base alla chiave specificata nell'insieme.

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

Parametri

key
String

Nome dell'oggetto ProfileSettings contenuto nell'insieme.

Valore della proprietà

Un oggetto ProfileSettings.

Si applica a