IDebugTypeFieldBuilder2::CreateArrayOfType

Note

This article applies to Visual Studio 2015. If you're looking for the latest Visual Studio documentation, see Visual Studio documentation. We recommend upgrading to the latest version of Visual Studio. Download it here

Creates an array of the specified type and size.

Syntax

HRESULT CreateArrayOfType (  
   IDebugField*  pTypeField,  
   DWORD         rank,  
   IDebugField** pArrayOfTypeField  
);  
int CreateArrayOfType (  
   IDebugField     pTypeField,  
   uint            rank,  
   out IDebugField pArrayOfTypeField  
);  

Parameters

pTypeField
[in] Type of elements the array will hold.

rank
[in] Number of elements in the array.

pArrayOfTypeField
[out] Returns the IDebugField objects that represent the new array.

Return Value

If successful, returns S_OK; otherwise, returns an error code.

See Also

IDebugTypeFieldBuilder2