ArcObjects Library Reference (Carto)  

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(
  VARIANT_BOOL* bUsesRelativePaths
);
[C++]

Parameters

bUsesRelativePaths [out, retval]   bUsesRelativePaths is a parameter of type VARIANT_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

Implementing a property page for an ArcGIS Engine application (Code Files: frmMain) | Save a layer file in a MapControl application (Code Files: frmMain) | Schematics Engine application (Code Files: MainForm) | Simple dynamic display application (Code Files: MainForm) | Synchronized MapControl and PageLayoutControl application (Code Files: frmMain) | Temporal statistics (Code Files: MainForm) |