This document is archived and information here might be outdated. Recommended version. |
ArcObjects namespaces > System > ESRI.ArcGIS.esriSystem > Interfaces > IF > IFileNames Interface > IFileNames.Next Method (ArcObjects .NET 10.4 SDK) |
Obtains the next filename in the array.
[Visual Basic .NET] Public Function Next ( _ ) As String
[C#] public string Next ( );
[C++]
HRESULT Next(
BSTR* FileName
);
[C++]
Parameters FileName [out, retval] FileName is a parameter of type BSTR
Returns the current file name in the array as a full path string.
The Next method will return a zero-length string when it reaches the end of the array. Use the Reset method to go back to the beginning of the array to gain sequential access to the file names.