FileFolderInfoCreate Method

Factory method to create an IFolderInfo object from a DirectoryInfo object.

Definition

Namespace: Configuration.Helper
Assembly: Configuration.Helper (in Configuration.Helper.dll) Version: 2.0.5
C#
public static IFolderInfo Create(
	DirectoryInfo dirInfo,
	bool includeFolders = false,
	params string[] filter
)

Parameters

dirInfo  DirectoryInfo
Root folder as a DirectoryInfo object.
includeFolders  Boolean  (Optional)
Include sub-folder contents. The default is .
filter  String
A string array that contains zero or more file name patterns.

Return Value

IFolderInfo
A FileFolderInfo object.

Exceptions

ArgumentNullExceptionThrown if the required parameter is .

See Also