CHStringArray::SetAtGrow method (chstrarr.h)

[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 SetAtGrow method sets the array element at the specified index. The array increases automatically if necessary, adjusting the upper bound to accommodate the new element.

Syntax

void  throw(CHeap_Exception) SetAtGrow(
  int     nIndex,
  LPCWSTR newElement
);

Parameters

nIndex

An integer index that is greater than or equal to zero (0).

Note  The nIndex parameter must be greater than or equal to zero (0). The debug version of the CHStringArray library validates the bounds of nIndex; the release version does not.
 

newElement

The object pointer to be added to this array. A NULL value is allowed.

Return value

This method does not return a value.

Requirements

Requirement Value
Minimum supported client Windows Vista
Minimum supported server Windows Server 2008
Target Platform Windows
Header chstrarr.h (include FwCommon.h)
Library FrameDyn.lib
DLL FrameDynOS.dll; FrameDyn.dll

See also

CHStringArray

CHStringArray::SetAt

CHStringArray::operator []