DirectoryInfoCreateSubdirectory Method (String, DirectorySecurity) |
Creates a subdirectory or subdirectories on the specified path. The specified path can be relative to this instance of the
DirectoryInfo class.
Namespace:
Alphaleonis.Win32.Filesystem
Assembly:
AlphaFS (in AlphaFS.dll) Version: 2.2
Syntax public DirectoryInfo CreateSubdirectory(
string path,
DirectorySecurity directorySecurity
)
Public Function CreateSubdirectory (
path As String,
directorySecurity As DirectorySecurity
) As DirectoryInfo
public:
DirectoryInfo^ CreateSubdirectory(
String^ path,
DirectorySecurity^ directorySecurity
)
member CreateSubdirectory :
path : string *
directorySecurity : DirectorySecurity -> DirectoryInfo
Parameters
- path
- Type: SystemString
The specified path. This cannot be a different disk volume. - directorySecurity
- Type: System.Security.AccessControlDirectorySecurity
The DirectorySecurity security to apply.
Return Value
Type:
DirectoryInfoThe last directory specified in
path.
Remarks
Any and all directories specified in path are created, unless some part of path is invalid.
The path parameter specifies a directory path, not a file path.
If the subdirectory already exists, this method does nothing.
See Also