Click or drag to resize

filesAndDirectoryOperationsdoDirectoryOperation Method

imbSCI | imbACE | imbNLP | imbWEM | imbWBI
Does the directory operation.

Namespace:  imbSCI.Core.extensions.io
Assembly:  imbSCI.Core (in imbSCI.Core.dll) Version: 0.3.58.
Syntax
C#
public static DirectoryInfo doDirectoryOperation(
	this directoryOperation operation,
	string targetPath,
	DirectoryInfo from = null,
	bool returnFrom = false
)
Request Example View Source

Parameters

operation
Type: imbSCI.Data.enumsdirectoryOperation
The operation.
targetPath
Type: SystemString
The target path - relative or not
from (Optional)
Type: System.IODirectoryInfo
From.
returnFrom (Optional)
Type: SystemBoolean
if set to true [return from].

Return Value

Type: DirectoryInfo

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type directoryOperation. 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
ArgumentOutOfRangeException
See Also