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


IFileNames2.LoadFromPath Method (ArcObjects .NET 10.8 SDK)
ArcObjects Help for .NET developers > ArcObjects Help for .NET developers > ArcObjects namespaces > System > ESRI.ArcGIS.esriSystem > Interfaces > IF > IFileNames2 Interface > IFileNames2.LoadFromPath Method
ArcGIS Developer Help

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