[Note: This topic is pre-release documentation and is subject to change in future releases. Blank topics are included as placeholders.]
[このトピックはプレリリース版のため将来変更される可能性があります。また、プレースホルダとしてブランクのトピックが含まれています。]
Enumerates the various segments contained in the data source.
IDiaEnumSegments : IUnknown
Methods in Vtable Order
The following table shows the methods of IDiaEnumSegments.
Method |
Description |
---|---|
Retrieves the IEnumVARIANT Interface version of this enumerator. |
|
Retrieves the number of segments. |
|
Retrieves a segment by means of an index. |
|
Retrieves a specified number of segments in the enumeration sequence. |
|
Skips a specified number of segments in an enumeration sequence. |
|
Resets an enumeration sequence to the beginning. |
|
Creates an enumerator that contains the same enumeration state as the current enumerator. |
Remarks
Notes for Callers
Obtain this interface by calling the QueryInterface method on an IDiaTable object. See the example for details.
Example
This example shows how to obtain the IDiaEnumSections interface from a table. For a more complete example of using segments, see the IDiaSegment interface.
void ShowSegments(IDiaTable *pTable, IDiaSession *pSession)
{
CComPtr<IDiaEnumSegments> pSegments;
if ( SUCCEEDED( pTable->QueryInterface(
__uuidof( IDiaEnumSegments ),
(void**)&pSegments )
)
)
{
// Do something with this enumeration
}
}
Requirements
Header: Dia2.h
Library: diaguids.lib
DLL: msdia80.dll
See Also
Interfaces (Debug Interface Access SDK)
IDiaTable
IDiaSegment