public Note GetNote(int index) { TableContext tc = GetContentsTable(); if (tc != null) { if (index < tc.RowCount) { // dwRowID is the MessageID NodeID nodeID = new NodeID(tc.GetRowID(index)); Note note = Note.GetNote(this.File, nodeID); return(note); } } return(null); }
public MessageObject GetMessage(int index) { TableContext tc = GetContentsTable(); if (tc != null) { if (index < tc.RowCount) { // dwRowID is the MessageID NodeID nodeID = new NodeID(tc.GetRowID(index)); MessageObject message = this.File.GetMessage(nodeID); return(message); } } return(null); }
public Appointment GetAppointment(int index) { TableContext tc = GetContentsTable(); if (tc != null) { if (index < tc.RowCount) { // dwRowID is the MessageID NodeID nodeID = new NodeID(tc.GetRowID(index)); Appointment appointment = Appointment.GetAppointment(this.File, nodeID); return(appointment); } } return(null); }
public PSTFolder FindChildFolder(string displayNameToFind) { TableContext tc = GetHierarchyTable(); if (tc != null) { for (int index = 0; index < tc.RowCount; index++) { string displayName = tc.GetStringProperty(index, PropertyID.PidTagDisplayName); if (displayName == displayNameToFind) { NodeID childNodeID = new NodeID(tc.GetRowID(index)); return(PSTFolder.GetFolder(File, childNodeID)); } } } return(null); }
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); }