Compartilhar via


IDiaEnumTables

Enumerates the various tables contained in the data source.

IDiaEnumTables : IUnknown

Methods in Vtable Order

The following table shows the methods of IDiaEnumTables.

Method

Description

IDiaEnumTables::get__NewEnum

Retrieves the IEnumVARIANT Interface version of this enumerator.

IDiaEnumTables::get_Count

Retrieves the number of tables.

IDiaEnumTables::Item

Retrieves a table by means of an index or a name.

IDiaEnumTables::Next

Retrieves a specified number of tables in the enumeration sequence.

IDiaEnumTables::Skip

Skips a specified number of tables in an enumeration sequence.

IDiaEnumTables::Reset

Resets an enumeration sequence to the beginning.

IDiaEnumTables::Clone

Creates an enumerator that contains the same enumeration state as the current enumerator.

Remarks

Notes for Callers

Obtain this interface by calling the IDiaSession::getEnumTables method.

Example

This example shows how to obtain the IDiaEnumTables interface from a session. For a more complete example of using tables, see the IDiaTable interface.

void ShowTableNames(IDiaSession *pSession)
{
    CComPtr<IDiaEnumTables> pTables;
    if ( FAILED( psession->getEnumTables( &pTables ) ) )
    {
        Fatal( "getEnumTables" );
    }
    // Do something with table
}

Requirements

Header: Dia2.h

Library: diaguids.lib

DLL: msdia80.dll

See Also

Reference

IDiaSession::getEnumTables

Other Resources

Interfaces (Debug Interface Access SDK)