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 © Cooker All rights reserved.