Home Notices Documents Classes Download Others Rice
Classes  >  file  >  DirectoryName
file class : DirectoryName getter

Description

Gets a string that represent the absolute path of the parent directory.

Syntax

fileInstance.DirectoryName

Arguments

None

Return value

ClassDescription
stringAbsolute path of the parent directory.

Sample code

1:

file f = new file("c:\somewhere...");

2:

string dirPath = f.DirectoryName;

Notes

It's a wrapper of the System.IO.FileInfo.DirectoryName property.

Links for reference

Copyright © Rice All rights reserved.