System.IO.DirectoryInfo.Create Method

Creates a directory using a System.Security.AccessControl.DirectorySecurity object.

Syntax

public void Create (System.Security.AccessControl.DirectorySecurity directorySecurity)

Parameters

directorySecurity
The access control to apply to the directory.

Remarks

Use this method overload to create a directory with access control, so there is no chance the directory can be accessed before security is applied.

If the directory already exists, this method does nothing.

For a list of common I/O tasks, see Common I/O Tasks.

Requirements

Namespace: System.IO
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 2.0.0.0, 4.0.0.0
Since: .NET 2.0