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


IFileNames2.LoadFromPath Method (ArcObjects .NET 10.4 SDK)
ArcObjects Library Reference (System)  

IFileNames2.LoadFromPath Method

Loads the collection with files from the specified path.

[Visual Basic .NET]
Public Sub LoadFromPath ( _
    ByVal Path As String _
)
[C#]
public void LoadFromPath (
    string Path
);
[C++]
HRESULT LoadFromPath(
  BSTR Path
);
[C++]

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

Product Availability

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

Description

The LoadFromPath method adds any file names to the array (both directories and files) that are found in the specified directory path.

See Also

IFileNames2 Interface