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


FileName Class (ArcObjects .NET 10.8 SDK)
ArcObjects Help for .NET developers > ArcObjects Help for .NET developers > ArcObjects namespaces > System > ESRI.ArcGIS.esriSystem > Classes > F > FileName Class
ArcGIS Developer Help

FileNameClass Class

File Name Object.

Product Availability

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

Description

Along with all the other Name objects (see esriGeodatabase in particular), the FileName object provides an identity for some data without it necessarily having to exist. A file name identifies and locates a file in a directory structure.

Supported Platforms

Windows, Solaris, Linux

Interfaces

Interfaces Description
IFileName Provides access to the pathnames of files.
IName Provides access to members that work with Name objects.
IPersistStream

Remarks

With FileName, the IName::Open method does not function properly, so you need to use whatever programmatic file-access technique is appropriate from your development environment standpoint.

FileName is useful with interfaces that take generic Name objects and perform actions. An example is ILayerFactoryHelper, which is often used with the MapControl to manage drag-and-drop operations.