Partager via


Array.IsFixedSize Propriété

Définition

Obtient une valeur indiquant si la Array taille est fixe.

public:
 property bool IsFixedSize { bool get(); };
public:
 virtual property bool IsFixedSize { bool get(); };
public bool IsFixedSize { get; }
public virtual bool IsFixedSize { get; }
member this.IsFixedSize : bool
Public ReadOnly Property IsFixedSize As Boolean
Public Overridable ReadOnly Property IsFixedSize As Boolean

Valeur de propriété

Cette propriété est toujours true destinée à tous les tableaux.

Implémente

Remarques

Array implémente la IsFixedSize propriété, car elle est requise par l’interface System.Collections.IList .

Un tableau avec une taille fixe n’autorise pas l’ajout ou la suppression d’éléments une fois le tableau créé, mais il autorise la modification des éléments existants.

La récupération de la valeur de cette propriété est une opération O(1).

S’applique à

Voir aussi