ConfigurationElementCollection.BaseRemoveAt(Int32) Metoda

Definice

Odebere objekt v ConfigurationElement zadaném umístění indexu.

protected:
 void BaseRemoveAt(int index);
protected public:
 void BaseRemoveAt(int index);
protected void BaseRemoveAt (int index);
protected internal void BaseRemoveAt (int index);
member this.BaseRemoveAt : int -> unit
Protected Sub BaseRemoveAt (index As Integer)
Protected Friend Sub BaseRemoveAt (index As Integer)

Parametry

index
Int32

Umístění indexu objektu, který ConfigurationElement chcete odebrat.

Výjimky

Konfigurace je jen pro čtení.

-nebo-

index je menší než nebo větší než 0 počet ConfigurationElement objektů v kolekci.

-nebo-

Objekt ConfigurationElement již byl odebrán.

-nebo-

Hodnota objektu ConfigurationElement byla uzamčena na vyšší úrovni.

-nebo-

Objekt ConfigurationElement byl zděděný.

-nebo-

Hodnota objektu ConfigurationElementType není AddRemoveClearMap nebo AddRemoveClearMapAlternate.

Poznámky

Metoda BaseRemoveAt vloží direktivu <remove> do konfiguračního souboru elementu v zadaném umístění indexu.

Platí pro