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


IMapDocument.UsesRelativePaths Property (ArcObjects .NET 10.8 SDK)
ArcObjects Help for .NET developers > ArcObjects Help for .NET developers > ArcObjects namespaces > Carto > ESRI.ArcGIS.Carto > Interfaces > IM > IMapDocument Interface > IMapDocument.UsesRelativePaths Property
ArcGIS Developer Help

IMapDocument.UsesRelativePaths Property

Indicates if the data in the map document is referenced using relative paths.

[Visual Basic .NET]
Public ReadOnly Property UsesRelativePaths As Boolean
[C#]
public bool UsesRelativePaths {get;}
[C++]
HRESULT get_UsesRelativePaths(
  Boolean* bUsesRelativePaths
);
[C++]
Parameters
bUsesRelativePaths [out, retval]

bUsesRelativePaths is a parameter of type bool*

Product Availability

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

Description

Determines whether the MapDocument that is open stores paths to data sources as relative path names (relative to the MapDocument) or absolute path names.

Remarks

If a Published Map File (*.pmf) is Open that was published with ArcGIS 8.x or a Layer File  (*.lyr) is Open the UsesRelativePaths will always return false.

See Also

IMapDocument Interface

.NET Samples

Synchronized MapControl and PageLayoutControl application Save a layer file in a MapControl application Simple dynamic display application Schematics Engine application Temporal statistics Temporal statistics