OutputCacheProfileCollection.RemoveAt(Int32) Metod

Definition

Tar OutputCacheProfile bort objektet vid det angivna indexet från samlingen.

public:
 void RemoveAt(int index);
public void RemoveAt(int index);
member this.RemoveAt : int -> unit
Public Sub RemoveAt (index As Integer)

Parametrar

index
Int32

Indexet för elementet som OutputCacheProfile ska tas bort från samlingen.

Undantag

Det finns inget OutputCacheProfile objekt med den angivna nyckeln i samlingen, elementet har redan tagits bort eller samlingen är skrivskyddad.

Exempel

I följande kodexempel visas hur metoden RemoveAt används.

// Remove the output profile with the specified index.
outputCacheProfiles.RemoveAt(0);
' Remove the output profile with the specified index.
  outputCacheProfiles.RemoveAt(0)

Kommentarer

Metoden RemoveAt infogar ett remove element i motsvarande avsnitt i konfigurationsfilen för alla element som definierats i en konfigurationsfil på högre nivå. Om elementet definieras i motsvarande avsnitt i den aktuella konfigurationsfilen tas posten bort från konfigurationsfilen. Det objekt som ska tas bort måste finnas i samlingen.

Gäller för

Se även