This document is archived and information here might be outdated. Recommended version. |
ArcObjects namespaces > System > ESRI.ArcGIS.esriSystem > Interfaces > IF > IFileNames2 Interface > IFileNames2.Find Method (ArcObjects .NET 10.4 SDK) |
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
Indicates whether the specified file name exists in the array.
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.