IDiaEnumTables::Item

Retrieves a table by means of an index or name.

Syntax

HRESULT Item ( 
   VARIANT     index,
   IDiaTable** table
);

Parameters

index

[in] Index or name of the IDiaTable to be retrieved. If an integer variant is used, it must be in the range 0 to count-1, where count is as returned by the IDiaEnumTables::get_Count method.

table

[out] Returns an IDiaTable object representing the desired table.

Return Value

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

Remarks

If a string variant is specified, then the string names a particular table. The name should be one of the table names as defined in Constants (Debug Interface Access SDK).

Example

VARIANT var;
var.vt = VT_BSTR;
var.bstrVal = SysAllocString(DiaTable_Symbols );
IDiaTable* pTable;
pEnumTables->Item( var, &pTable );

See also