Click or drag to resize

ExtensionsDirectoryInfoCombine Method (DirectoryInfo, String, String)

Combines a DirectoryInfo and a string to a path

Namespace:  Cauldron
Assembly:  Cauldron (in Cauldron.dll) Version: 3.2.0.1 (3.2.0.1)
Syntax
C#
public static DirectoryInfo Combine(
	this DirectoryInfo directory,
	string path1,
	string path2
)

Parameters

directory
Type: System.IODirectoryInfo
The first path to combine
path1
Type: SystemString
The second path to combine
path2
Type: SystemString
The third path to combine

Return Value

Type: DirectoryInfo
The combine path as DirectoryInfo

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
ArgumentExceptiondirectory or path1 or path2 contains one or more of the invalid characters defined in GetInvalidPathChars.
ArgumentNullExceptiondirectory or path1 or path2 is null.
See Also