Sdílet prostřednictvím


RuleSettingsCollection.Item[] Vlastnost

Definice

BufferModeSettings Získá objekt.

Přetížení

Item[Int32]

RuleSettings Získá objekt na zadaném číselném indexu.

Item[String]

RuleSettings Získá objekt na základě zadaného klíče v kolekci.

Item[Int32]

RuleSettings Získá objekt na zadaném číselném indexu.

public:
 property System::Web::Configuration::RuleSettings ^ default[int] { System::Web::Configuration::RuleSettings ^ get(int index); void set(int index, System::Web::Configuration::RuleSettings ^ value); };
public System.Web.Configuration.RuleSettings this[int index] { get; set; }
member this.Item(int) : System.Web.Configuration.RuleSettings with get, set
Default Public Property Item(index As Integer) As RuleSettings

Parametry

index
Int32

Index objektu RuleSettings v kolekci.

Hodnota vlastnosti

Objekt RuleSettings v zadaném indexu.

Výjimky

Index je mimo rozsah.

Příklady

Následující příklad kódu ukazuje, jak použít metodu Item[] . Tento příklad kódu je součástí většího příkladu HealthMonitoringSection pro třídu .

ruleSetting = healthMonitoringSection.Rules[i];
ruleSetting = healthMonitoringSection.Rules(i)

Poznámky

Objekt RuleSettings v zadaném indexu musí existovat.

Viz také

Platí pro

Item[String]

RuleSettings Získá objekt na základě zadaného klíče v kolekci.

public:
 property System::Web::Configuration::RuleSettings ^ default[System::String ^] { System::Web::Configuration::RuleSettings ^ get(System::String ^ key); };
public System.Web.Configuration.RuleSettings this[string key] { get; }
member this.Item(string) : System.Web.Configuration.RuleSettings
Default Public ReadOnly Property Item(key As String) As RuleSettings

Parametry

key
String

Název objektu obsaženého RuleSettings v kolekci.

Hodnota vlastnosti

Objekt RuleSettings .

Platí pro