CHStringArray::ElementAt (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 ElementAt method returns a temporary reference to the element pointer within the array.
Syntax
CHString & ElementAt(
int nIndex
);
Parameters
nIndex
An integer index that is greater than or equal to zero and less than or equal to the value returned by GetUpperBound.
Return value
If the ElementAt method is successful, it returns a reference to the CHString string at the nIndex position in the CHStringArray array.
Remarks
Use the ElementAt method to implement the left-side assignment operator for arrays. This is an advanced method, which you should use only to implement special array operators.
Examples
See the example for CHStringArray::GetSize.
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 |