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(
  BSTR* FileName
);
[C++]

Parameters

FileName [out, retval]   FileName is a parameter of type BSTR

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