Click or drag to resize

ExtensionsDirectoryInfoCombine Method (DirectoryInfo, String, String, String, String)

Combines a DirectoryInfo and a string to a path

Namespace:  Cauldron
Assembly:  Cauldron (in Cauldron.dll) Version: 3.2.0.2
Syntax
public static DirectoryInfo Combine(
	this DirectoryInfo directory,
	string path1,
	string path2,
	string path3,
	string path4
)

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
path3
Type: SystemString
The fourth path to combine
path4
Type: SystemString
The fourth 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 or path3 or path4 contains one or more of the invalid characters defined in GetInvalidPathChars.
ArgumentNullExceptiondirectory or path1 or path2 or path3 or path4 is null.
See Also