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


IFileNames.Add Method (ArcObjects .NET 10.4 SDK)
ArcObjects Library Reference (System)  

IFileNames.Add Method

Adds a filename to the array.

[Visual Basic .NET]
Public Sub Add ( _
    ByVal FileName As String _
)
[C#]
public void Add (
    string FileName
);
[C++]
HRESULT Add(
  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

The Add method adds the specified file name to the end of the array as a full path string. The path can refer to a directory or a file. Use the IsDirectory method to determine with the path specifies a directory or file.

See Also

IFileNames Interface