[The CHStringArray class is part of the WMI Provider Framework which is now considered in final state, and no further development, enhancements, or updates will be available for non-security related issues affecting these libraries. The MI APIs should be used for all new development.]
The RemoveAt method removes one or more elements starting at a specified index in an array.
void RemoveAt( int nIndex, int nCount );
An integer index that is greater than or equal to zero and less than or equal to the value returned by GetUpperBound.
The number of elements to remove. The default is 1 (one).
This method does not return a value.
In the process of removing elements, RemoveAt shifts down all the elements located above the elements that are removed. This method decrements the upper bound of the array but does not free memory.
The following code example shows the use of CHStringArray::RemoveAt.
 = String 2
|Windows version||Windows Vista Windows Server 2008|
|Header||chstrarr.h (include FwCommon.h)|