Click or drag to resize

folderNodeAttach Method (DirectoryInfo, String, String, Boolean, Boolean, ILogBuilder)

imbSCI | imbACE | imbNLP | imbWEM | imbWBI
Attaches sub directory, sets caption and description. If these are not specified, it will scan the directory for readme file. ScanReadMe(ILogBuilder)

Namespace:  imbSCI.Core.files.folders
Assembly:  imbSCI.Core (in imbSCI.Core.dll) Version: 0.3.58.
Syntax
C#
public folderNode Attach(
	DirectoryInfo directory,
	string __caption = "",
	string __description = "",
	bool forceScan = false,
	bool autoCreate = true,
	ILogBuilder logger = null
)
Request Example View Source

Parameters

directory
Type: System.IODirectoryInfo
The directory.
__caption (Optional)
Type: SystemString
The caption.
__description (Optional)
Type: SystemString
The description.
forceScan (Optional)
Type: SystemBoolean
if set to true it will force readme file scan ScanReadMe(ILogBuilder).
autoCreate (Optional)
Type: SystemBoolean
if set to true it will create the directory, if not existing already.
logger (Optional)
Type: imbSCI.Core.reportingILogBuilder
The logger.

Return Value

Type: folderNode
Reference on newly attached directory, or null if it wasn't found nor created
See Also