Click or drag to resize

ExtensionsDirectoryInfoCreateFolderAsync Method (DirectoryInfo, String)

Creates a new subfolder with the specified name in the current folder.

Namespace:  Cauldron
Assembly:  Cauldron (in Cauldron.dll) Version: 3.2.0.1 (3.2.0.1)
Syntax
C#
public static Task<DirectoryInfo> CreateFolderAsync(
	this DirectoryInfo directoryInfo,
	string desiredName
)

Parameters

directoryInfo
Type: System.IODirectoryInfo
The DirectoryInfo representing the current folder
desiredName
Type: SystemString
The name of the new subfolder to create in the current folder.

Return Value

Type: TaskDirectoryInfo
When this method completes, it returns a DirectoryInfo that represents the new subfolder.

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).
See Also