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


IFileNames2.Find Method (ArcObjects .NET 10.5 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,
  VARIANT_BOOL* pFound
);
[C++]

Parameters FileName [in] FileName is a parameter of type BSTR pFound [out, retval] pFound is a parameter of type VARIANT_BOOL

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