ProfileSettingsCollection.Item[] Egenskap

Definition

Hämtar eller anger det angivna ProfileSettings objektet.

Överlagringar

Name Description
Item[Int32]

Hämtar eller anger ProfileSettings objektet vid det angivna numeriska indexet i samlingen.

Item[String]

ProfileSettings Hämtar objektet baserat på den angivna nyckeln i samlingen.

Item[Int32]

Hämtar eller anger ProfileSettings objektet vid det angivna numeriska indexet i samlingen.

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

Parametrar

index
Int32

Indexet för ett ProfileSettings objekt i samlingen.

Egenskapsvärde

Objektet ProfileSettings i det angivna indexet eller null om det inte finns något objekt i indexet.

Exempel

I följande kodexempel visas hur metoden Item[] används. Det här kodexemplet är en del av ett större exempel för HealthMonitoringSection klassen.

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

Se även

Gäller för

Item[String]

ProfileSettings Hämtar objektet baserat på den angivna nyckeln i samlingen.

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

Parametrar

key
String

Namnet på objektet ProfileSettings som finns i samlingen.

Egenskapsvärde

Ett ProfileSettings objekt.

Gäller för