CHStringArray::RemoveAll method

[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 RemoveAll method removes all the CHString members from this array.

Syntax


void RemoveAll();

Parameters

This method has no parameters.

Return value

This method does not return a value.

Remarks

The RemoveAll method works on empty arrays.

Examples

The following code example shows the use of CHStringArray::RemoveAll.


CHStringArray array;

array.Add( L"String 1" ); // Element 0
array.Add( L"String 2" ); // Element 1 
assert( array.GetSize() == 2 ); 
array.RemoveAll(); 
assert( array.GetSize() == 0 );

Requirements

Minimum supported client

Windows Vista

Minimum supported server

Windows Server 2008

Header

ChStrArr.h (include FwCommon.h)

Library

FrameDyn.lib

DLL

FrameDynOS.dll;
FrameDyn.dll

See also

CHStringArray
CHStringArray::FreeExtra

 

 

Show: