public List <PSTFolder> GetChildFolders() { TableContext tc = GetHierarchyTable(); List <PSTFolder> result = new List <PSTFolder>(); if (tc != null) { for (int index = 0; index < tc.RowCount; index++) { // dwRowID is the NodeID NodeID childNodeID = new NodeID(tc.GetRowID(index)); if (childNodeID.nidType == NodeTypeName.NID_TYPE_NORMAL_FOLDER) { PSTFolder childFolder = PSTFolder.GetFolder(File, childNodeID); result.Add(childFolder); } } } return(result); }
public PSTFolder GetFolder(NodeID nodeID) { PSTFolder folder = PSTFolder.GetFolder(this, nodeID); return(folder); }