| Visual Basic | |
|---|---|
Sub GetNext2( _ ByVal poPos As IEdmPos5, _ ByRef poSel As EdmSelectionObject _ ) | |
| C# | |
|---|---|
void GetNext2( IEdmPos5 poPos, out EdmSelectionObject poSel ) | |
| C++/CLI | |
|---|---|
void GetNext2( & IEdmPos5^ poPos, & [Out] EdmSelectionObject poSel ) | |
Parameters
- poPos
- IEdmPos5; position of the item to get (see Remarks)
- poSel
- EdmSelectionObject structure
Before calling this method the first time, you must populate poPos with the interface to the position of the first item, IEdmPos5. Call IEdmSelectionList5::GetHeadPosition to obtain IEdmPos5.
After calling this method the first time, poPos is automatically incremented every time it is called. Call this method repeatedly to obtain the rest of the items.
Be sure to call IEdmPos5::IsNull before you call this method to ensure you have not reached the end of the enumeration.
C++ programmers must free the object returned in poSel.
Note: Objects added with the now obsolete IEdmSelectionList5::AddTail are not completely defined. If you added an object using IEdmSelectionList5::AddTail, the EdmSelectionObject structure returned by this method contains the following:
- The meType member is always EdmObjectType.EdmObject_File.
- The mbsPath member contains only the file name provided as argument to IEdmSelectionList5::AddTail, not the entire path.
- The members mlGetVersion, mlLocalVersion, and mlLatestVersion are all -1.
To add completely defined objects to this list, call IEdmSelectionList6.AddTail2.
- S_OK: The method successfully executed.
- E_EDM_END_OF_LIST: You have gone past the end of the list.