Click or drag to resize

filesAndDirectoryOperationsgetRelativePathToParent Method

imbSCI | imbACE | imbNLP | imbWEM | imbWBI
Gets the relative path from start to parent

Namespace:  imbSCI.Core.extensions.io
Assembly:  imbSCI.Core (in imbSCI.Core.dll) Version: 0.3.58.
Syntax
C#
public static string getRelativePathToParent(
	this DirectoryInfo start,
	DirectoryInfo parent
)
Request Example View Source

Parameters

start
Type: System.IODirectoryInfo
The start.
parent
Type: System.IODirectoryInfo
The parent.

Return Value

Type: String

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type DirectoryInfo. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).
Exceptions
ExceptionCondition
ExceptionIteration limit triggered c=[" + c.ToString() + "] for start [" + start.FullName + "] is not subdir of parent [" + parent.FullName + "]
ArgumentOutOfRangeExceptionparent - start [" + start.FullName + "] is not subdir of parent [" + parent.FullName + "]
See Also