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


IFileNames2.Find Method (ArcObjects .NET 10.6 SDK)
ArcObjects Library Reference (System)  

IFileNames2.Find Method

Advances the current postion to the specified file if it exists.

[Visual Basic .NET]
Public Function Find ( _
    ByVal FileName As String _
) As Boolean
[C#]
public bool Find (
    string FileName
);
[C++]
HRESULT Find(
  BSTR FileName
);
[C++]

Parameters FileName [in]
FileName is a parameter of type BSTR

Product Availability

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

Description

Indicates whether the specified file name exists in the array.

Remarks

If the array contains a file name which is a directory path, the Find method returns False (not found) if the directory path was passed to be searched. The Find method searches only for files. 

See Also

IFileNames2 Interface