ZosDataSetFolders
The ZosDataSetFolders object is a collection of all data set folders with the same parent folder. This object is obtained using the DataSetFolders property of ZosServer or the Subfolders property of the ZosDataSetFolder object.
ZosDataSetFolders Properties
ZosDataSetFolders exposes the following properties:
Property | Type | R/W | Description |
---|---|---|---|
[index] [name] | ZosDataSetFolder | R | Folder with specified name or index. |
Count | Int32 | R | Number of objects in collection. |
Path | String | R | File system path name for collection. |
...
ZosDataSetFolders Methods
ZosDataSetFolders exposes the following methods:
Add Method
Adds a new folder. Returns index at which object has been added.
Int32 Add(
String folderName
)
Find Method
Searches for folder with specified name and returns reference to object. Returns null if name is not found.
ZosDataSetFolder Find(
String name
)
FindIndex Method
Searches for folder with specified name and returns zero-based index. Returns -1 if name is not found.
Int32 FindIndex(
String name
)
Refresh Method
Refreshes collection.
void Refresh()
Remove Method
Deletes a folder. Returns true if folder was removed or false if folder is not found.
Boolean Remove(
String folderName
)
...