|
2 | 2 | title: "IDiaEnumSegments | Microsoft Docs"
|
3 | 3 | ms.date: "11/04/2016"
|
4 | 4 | ms.topic: "conceptual"
|
5 |
| -dev_langs: |
| 5 | +dev_langs: |
6 | 6 | - "C++"
|
7 |
| -helpviewer_keywords: |
| 7 | +helpviewer_keywords: |
8 | 8 | - "IDiaEnumSegments interface"
|
9 | 9 | ms.assetid: 0c9edd5e-b9ce-43e1-a791-cd4c5d16d923
|
10 | 10 | author: "mikejo5000"
|
11 | 11 | ms.author: "mikejo"
|
12 | 12 | manager: jillfra
|
13 |
| -ms.workload: |
| 13 | +ms.workload: |
14 | 14 | - "multiple"
|
15 | 15 | ---
|
16 | 16 | # IDiaEnumSegments
|
17 |
| -Enumerates the various segments contained in the data source. |
18 |
| - |
19 |
| -## Syntax |
20 |
| - |
21 |
| -``` |
22 |
| -IDiaEnumSegments : IUnknown |
23 |
| -``` |
24 |
| - |
25 |
| -## Methods in Vtable Order |
26 |
| - The following table shows the methods of `IDiaEnumSegments`. |
27 |
| - |
28 |
| -|Method|Description| |
29 |
| -|------------|-----------------| |
30 |
| -|[IDiaEnumSegments::get__NewEnum](../../debugger/debug-interface-access/idiaenumsegments-get-newenum.md)|Retrieves the [IEnumVARIANT Interface](/previous-versions/windows/desktop/api/oaidl/nn-oaidl-ienumvariant) version of this enumerator.| |
31 |
| -|[IDiaEnumSegments::get_Count](../../debugger/debug-interface-access/idiaenumsegments-get-count.md)|Retrieves the number of segments.| |
32 |
| -|[IDiaEnumSegments::Item](../../debugger/debug-interface-access/idiaenumsegments-item.md)|Retrieves a segment by means of an index.| |
33 |
| -|[IDiaEnumSegments::Next](../../debugger/debug-interface-access/idiaenumsegments-next.md)|Retrieves a specified number of segments in the enumeration sequence.| |
34 |
| -|[IDiaEnumSegments::Skip](../../debugger/debug-interface-access/idiaenumsegments-skip.md)|Skips a specified number of segments in an enumeration sequence.| |
35 |
| -|[IDiaEnumSegments::Reset](../../debugger/debug-interface-access/idiaenumsegments-reset.md)|Resets an enumeration sequence to the beginning.| |
36 |
| -|[IDiaEnumSegments::Clone](../../debugger/debug-interface-access/idiaenumsegments-clone.md)|Creates an enumerator that contains the same enumeration state as the current enumerator.| |
37 |
| - |
38 |
| -## Remarks |
39 |
| - |
40 |
| -## Notes for Callers |
41 |
| - Obtain this interface by calling the `QueryInterface` method on an [IDiaTable](../../debugger/debug-interface-access/idiatable.md) object. See the example for details. |
42 |
| - |
43 |
| -## Example |
44 |
| - This example shows how to obtain the `IDiaEnumSections` interface from a table. For a more complete example of using segments, see the [IDiaSegment](../../debugger/debug-interface-access/idiasegment.md) interface. |
45 |
| - |
46 |
| -```C++ |
47 |
| -void ShowSegments(IDiaTable *pTable, IDiaSession *pSession) |
48 |
| -{ |
49 |
| - CComPtr<IDiaEnumSegments> pSegments; |
50 |
| - if ( SUCCEEDED( pTable->QueryInterface( |
51 |
| - __uuidof( IDiaEnumSegments ), |
52 |
| - (void**)&pSegments ) |
53 |
| - ) |
54 |
| - ) |
55 |
| - { |
56 |
| - // Do something with this enumeration |
57 |
| - } |
58 |
| -} |
59 |
| -``` |
60 |
| - |
61 |
| -## Requirements |
62 |
| - Header: Dia2.h |
63 |
| - |
64 |
| - Library: diaguids.lib |
65 |
| - |
66 |
| - DLL: msdia80.dll |
67 |
| - |
68 |
| -## See Also |
69 |
| - [Interfaces (Debug Interface Access SDK)](../../debugger/debug-interface-access/interfaces-debug-interface-access-sdk.md) |
70 |
| - [IDiaTable](../../debugger/debug-interface-access/idiatable.md) |
71 |
| - [IDiaSegment](../../debugger/debug-interface-access/idiasegment.md) |
| 17 | +Enumerates the various segments contained in the data source. |
| 18 | + |
| 19 | +## Syntax |
| 20 | + |
| 21 | +``` |
| 22 | +IDiaEnumSegments : IUnknown |
| 23 | +``` |
| 24 | + |
| 25 | +## Methods in Vtable Order |
| 26 | +The following table shows the methods of `IDiaEnumSegments`. |
| 27 | + |
| 28 | +|Method|Description| |
| 29 | +|------------|-----------------| |
| 30 | +|[IDiaEnumSegments::get__NewEnum](../../debugger/debug-interface-access/idiaenumsegments-get-newenum.md)|Retrieves the [IEnumVARIANT Interface](/previous-versions/windows/desktop/api/oaidl/nn-oaidl-ienumvariant) version of this enumerator.| |
| 31 | +|[IDiaEnumSegments::get_Count](../../debugger/debug-interface-access/idiaenumsegments-get-count.md)|Retrieves the number of segments.| |
| 32 | +|[IDiaEnumSegments::Item](../../debugger/debug-interface-access/idiaenumsegments-item.md)|Retrieves a segment by means of an index.| |
| 33 | +|[IDiaEnumSegments::Next](../../debugger/debug-interface-access/idiaenumsegments-next.md)|Retrieves a specified number of segments in the enumeration sequence.| |
| 34 | +|[IDiaEnumSegments::Skip](../../debugger/debug-interface-access/idiaenumsegments-skip.md)|Skips a specified number of segments in an enumeration sequence.| |
| 35 | +|[IDiaEnumSegments::Reset](../../debugger/debug-interface-access/idiaenumsegments-reset.md)|Resets an enumeration sequence to the beginning.| |
| 36 | +|[IDiaEnumSegments::Clone](../../debugger/debug-interface-access/idiaenumsegments-clone.md)|Creates an enumerator that contains the same enumeration state as the current enumerator.| |
| 37 | + |
| 38 | +## Remarks |
| 39 | + |
| 40 | +## Notes for Callers |
| 41 | +Obtain this interface by calling the `QueryInterface` method on an [IDiaTable](../../debugger/debug-interface-access/idiatable.md) object. See the example for details. |
| 42 | + |
| 43 | +## Example |
| 44 | +This example shows how to obtain the `IDiaEnumSections` interface from a table. For a more complete example of using segments, see the [IDiaSegment](../../debugger/debug-interface-access/idiasegment.md) interface. |
| 45 | + |
| 46 | +```C++ |
| 47 | +void ShowSegments(IDiaTable *pTable, IDiaSession *pSession) |
| 48 | +{ |
| 49 | + CComPtr<IDiaEnumSegments> pSegments; |
| 50 | + if ( SUCCEEDED( pTable->QueryInterface( |
| 51 | + __uuidof( IDiaEnumSegments ), |
| 52 | + (void**)&pSegments ) |
| 53 | + ) |
| 54 | + ) |
| 55 | + { |
| 56 | + // Do something with this enumeration |
| 57 | + } |
| 58 | +} |
| 59 | +``` |
| 60 | +
|
| 61 | +## Requirements |
| 62 | +Header: Dia2.h |
| 63 | +
|
| 64 | +Library: diaguids.lib |
| 65 | +
|
| 66 | +DLL: msdia80.dll |
| 67 | +
|
| 68 | +## See Also |
| 69 | +[Interfaces (Debug Interface Access SDK)](../../debugger/debug-interface-access/interfaces-debug-interface-access-sdk.md) |
| 70 | +[IDiaTable](../../debugger/debug-interface-access/idiatable.md) |
| 71 | +[IDiaSegment](../../debugger/debug-interface-access/idiasegment.md) |
0 commit comments