StringCollection.Add Method (String)
.NET Framework (current version)
System (in System.dll)
member Add :
value:string -> int
The zero-based index at which the new element is inserted.
StringCollection accepts null as a valid value and allows duplicate elements.
If Count is less than the capacity, this method is an O(1) operation. If the capacity needs to be increased to accommodate the new element, this method becomes an O(n) operation, where n is Count.
The following code example adds new elements to the StringCollection.
No code example is currently available or this language may not be supported.
Return to top
Universal Windows Platform
Available since 10
Available since 1.1