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 .