HashSet<T>.EnsureCapacity(Int32) Méthode
Important
Certaines informations portent sur la préversion du produit qui est susceptible d’être en grande partie modifiée avant sa publication. Microsoft exclut toute garantie, expresse ou implicite, concernant les informations fournies ici.
Garantit que ce jeu de hachage peut contenir le nombre spécifié d’éléments sans extension supplémentaire de son stockage de stockage.
public:
int EnsureCapacity(int capacity);
public int EnsureCapacity (int capacity);
member this.EnsureCapacity : int -> int
Public Function EnsureCapacity (capacity As Integer) As Integer
- capacity
- Int32
Capacité minimale à garantir.
Nouvelle capacité de cette instance.
capacity
est inférieur à zéro.
Produit | Versions |
---|---|
.NET | Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8, 9 |
.NET Standard | 2.1 |
Commentaires sur .NET
.NET est un projet open source. Sélectionnez un lien pour fournir des commentaires: