| C# | |
|---|---|
public static string DirectorySubItem( string pathToDirectory, string items, string itemNumber, bool sortAlphabetically ) | |
Parameters
- pathToDirectory
Type: System.String
Path to the directory.
- items
Type: System.String
Sampling units ("d" - directories, "f" - files, "df" - all together) .
- itemNumber
Type: System.String
The number of the element.
- sortAlphabetically
Type: System.Boolean
true if sort items before sampling; otherwise, false.
Return Value
Type: System.String
Directory entries .
The following example shows call the DirectorySubItem method.
| C# | Copy Code |
|---|---|
string pathToDirectory = {pathToDirectory}; string items = "df"; string itemNumber = "0"; bool sortAlphabetically = false; string result = FileSystem.DirectorySubItem(pathToDirectory, items, itemNumber, sortAlphabetically); | |
| PHP | Copy Code |
|---|---|
$pathToDirectory = {pathToDirectory}; $items = "df"; $itemNumber = "0"; $sortAlphabetically = false; $result = FileSystem::DirectorySubItem($pathToDirectory, $items, $itemNumber, $sortAlphabetically); | |
Target Platforms: Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family