directory class : Name getter

Description

Gets the name of the directory.

Syntax

directoryInstance.Name

Arguments

None

Return value

ClassDescription
stringThe name of the directory.

Sample code

1:

directory dir = new directory("c:\somewhere...");

2:

string directoryName = dir.Name;

Notes

It's a wrapper of the System.IO.DirectoryInfo.Name property.

Links for reference

Copyright © Cooker All rights reserved.