This document is archived and information here might be outdated.  Recommended version.


IFileNames.Next Method (ArcObjects .NET 10.6 SDK)
ArcObjects Library Reference (System)  

IFileNames.Next Method

Obtains the next filename in the array.

[Visual Basic .NET]
Public Function Next ( _
) As String
[C#]
public string Next (
);
[C++]
HRESULT Next(
void
);

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Description

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. 

See Also

IFileNames Interface