Platform Core .NET Assemblies API
MakeRelativePath Method
See Also  Send Feedback
Terrasoft.Common Namespace > FileUtilities Class : MakeRelativePath Method
baseDirectoryPath
The base path to the folder from which the path to the file is built.
absoluteFilePath
The absolute path to the file.

Glossary Item Box

Forms relative path to the file.

Syntax

 
C#
 
 

Parameters

baseDirectoryPath
The base path to the folder from which the path to the file is built.
absoluteFilePath
The absolute path to the file.

Return Value

The string that represents the path to the absoluteFilePath file relatively to the baseDirectoryPath folder.

Exceptions

ExceptionDescription
ArgumentNullOrEmptyExceptionIf an empty value or null is received as the baseDirectoryPath or absoluteFilePath parameters.

Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

© Terrasoft 2002-2018.