Creates a new Directory object on the specified path.
[Visual Basic] Public Sub New( _ ByVal path As String _ ) [C#] public Directory( string path ); [C++] public: Directory( String* path ); [JScript] public function Directory( path : String );
Exception Type | Condition |
---|---|
ArgumentNullException | path is null. |
DirectoryNotFoundException | The path is not found. |
SecurityException | The caller does not have the required permission. |
NGWS Runtime Security:
FileIOPermissionAccess | AllAccess flag required for read, write, and append access to the path. |