Share via


IDiaEnumDebugStreamData::Item

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

Retrieves the specified record.

Syntax

HRESULT Item (   
   DWORD  index,  
   DWORD  cbData,  
   DWORD* pcbData,  
   BYTE   data[]  
);  

Parameters

index
[in] Index of the record to be retrieved. The index is in the range 0 to count-1, where count is returned by IDiaEnumDebugStreamData::get_Count.

cbData
[in] Size of the data buffer, in bytes.

pcbData
[out] Returns the number of bytes returned. If data is NULL, then pcbData contains the total number of bytes of data available in the specified record.

data[]
[out] A buffer that is filled in with the debug stream record data.

Return Value

If successful, returns S_OK; otherwise, returns an error code. Returns E_INVALIDARG for invalid parameters and if the index parameter is out of bounds.

See Also

IDiaEnumDebugStreamData
IDiaEnumDebugStreamData::Next
IDiaEnumDebugStreams::Item
IDiaEnumDebugStreamData::get_Count
IDiaEnumDebugStreamData::Skip